snowflake.snowpark.DataFrameReader.option

DataFrameReader.option(key: str, value: Any) DataFrameReader[source] (https://github.com/snowflakedb/snowpark-python/blob/v1.16.0/src/snowflake/snowpark/dataframe_reader.py#L542-L557)

Sets the specified option in the DataFrameReader.

Use this method to configure any format-specific options and copy options. (Note that although specifying copy options can make error handling more robust during the reading process, it may have an effect on performance.)

Parameters:
  • key – Name of the option (e.g. compression, skip_header, etc.).

  • value – Value of the option.

语言: 中文