snowflake.snowpark.DataFrameReader.avro¶
- DataFrameReader.avro(path: str) DataFrame [source] (https://github.com/snowflakedb/snowpark-python/blob/v1.26.0/snowpark-python/src/snowflake/snowpark/dataframe_reader.py#L649-L675)¶
Specify the path of the AVRO file(s) to load.
- Parameters:
path – The stage location of an AVRO file, or a stage location that has AVRO files.
Note
When using
DataFrame.select()
, quote the column names to select the desired columns. This is needed because converting from AVRO to class:DataFrame does not capitalize the column names from the original columns and aDataFrame.select()
without quote looks for capitalized column names.- Returns:
a
DataFrame
that is set up to load data from the specified AVRO file(s) in a Snowflake stage.