snowflake.snowpark.DataFrameReader.schema

DataFrameReader.schema(schema: StructType) DataFrameReader[source]

Define the schema for CSV, JSON, Parquet, or XML files that you want to read.

Parameters:

schema – Schema configuration for the file to be read.

Returns:

a DataFrameReader instance with the specified schema configuration for the data to be read.