sterling_paramore
09/12/2022, 5:23 PM2022-09-12T17:07:03.599035Z [info ] snowflake.connector.errors.ProgrammingError: 100080 (22000): Number of columns in file (104) does not match that of the corresponding table (105), use file format option error_on_column_count_mismatch=false to ignore this error cmd_type=elb consumer=True name=target-snowflake--etahub producer=False stdio=stderr string_id=target-snowflake--etahub
2022-09-12T17:07:03.599148Z [info ] File '@LGENS/batch_spn8i2_5.csv.gz', line 2, character 1 cmd_type=elb consumer=True name=target-snowflake--etahub producer=False stdio=stderr string_id=target-snowflake--etahubpat_nadolny
09/12/2022, 5:41 PMsterling_paramore
09/12/2022, 6:59 PMpat_nadolny
09/13/2022, 4:33 PMlist @%mytable which looks like it matches the table name and if it failed I suspect it wouldnt have cleaned up the stage so show stages should include the failed stage. Probably depends on the failure and how theyre handled. Is that helpful?sterling_paramore
09/13/2022, 4:38 PMpat_nadolny
09/13/2022, 5:18 PMsterling_paramore
09/13/2022, 5:29 PMsterling_paramore
09/13/2022, 6:07 PMuse file format option error_on_column_count_mismatch=false to ignore this error. I was concerned this might cause data to end up in the wrong columns, but if I change the file format to use this option, then data gets loaded as expected.
This wasn’t a problem with adding a column as I originally suspected, but a problem with renaming a column (aka one drop/one add). So the number of columns in the data stream will be less than the number of columns in the table.
If I set that option to ignore the error, it works. The old column is still there and has the data it used to have, it just won’t be populated for new data.