Complete the code to load a CSV file into a Snowflake table.
COPY INTO my_table FROM @my_stage/file[1] FILE_FORMAT = (TYPE = 'CSV');
The .csv extension is used for CSV files, which are comma-separated values files commonly used for tabular data.
Complete the code to specify the JSON file format in Snowflake.
CREATE FILE FORMAT my_json_format TYPE = '[1]';
The file format type JSON is used to specify JSON files in Snowflake.
Fix the error in the COPY INTO command to load Parquet files.
COPY INTO my_table FROM @my_stage/file[1] FILE_FORMAT = (TYPE = 'PARQUET');
Parquet files use the .parquet extension, so the file path must end with this extension to load correctly.
Fill both blanks to create a file format for Avro files with compression.
CREATE FILE FORMAT avro_format TYPE = '[1]' COMPRESSION = '[2]';
The file format type for Avro files is AVRO. A common compression used with Avro is SNAPPY.
Fill all three blanks to create a Snowflake stage for Parquet files with auto compression detection.
CREATE STAGE my_stage FILE_FORMAT = (TYPE = '[1]' COMPRESSION = '[2]' AUTO_DETECT = [3]);
Parquet files use PARQUET as the type. Setting COMPRESSION to AUTO enables Snowflake to detect the compression automatically because Parquet files are often already compressed. AUTO_DETECT set to TRUE lets Snowflake detect file format details automatically.