QuestionQ118
Ingest and Process DataA Data Engineer is attempting to load the following CSV rows into a Snowflake table with this structure:


The engineer uses the following COPY INTO statement:

However, the following error is returned:
Number of columns in file (6) does not match that of the corresponding table (3), use file format option error_on_column_count_mismatch=false to ignore this error File 'address.csv.gz', line 3, character 1 Row 1 starts at line 2, column "STGCUSTOMER"[6] If you would like to continue loading when an error is encountered, use other values such as 'SKIP_FILE' or 'CONTINUE' for the ON_ERROR option.
Which file format option should be used to fix the error and load all data successfully into the table?
Community Discussion