snowflake.snowpark.DataFrameReader.orc

DataFrameReader.orc(path: str) DataFrame[source] (https://github.com/snowflakedb/snowpark-python/blob/v1.16.0/src/snowflake/snowpark/dataframe_reader.py#L514-L529)

Specify the path of the ORC file(s) to load.

Parameters:

path – The stage location of a ORC file, or a stage location that has ORC files.

Note

When using DataFrame.select(), quote the column names to select the desired columns. This is needed because converting from ORC to class:DataFrame does not capitalize the column names from the original columns and a DataFrame.select() without quote looks for capitalized column names.

Returns:

a DataFrame that is set up to load data from the specified ORC file(s) in a Snowflake stage.

语言: 中文