I'm working on loading data from s3 bucket to snowflake table & using the copy into command.
COPY INTO DB.SCHEMA.TABLE
FROM s3://test1/test.tsv
STORAGE_INTEGRATION = "TEST_S3"
FILE_FORMAT = (type = "CSV" field_delimiter = ' ' skip_header = 0)
ON_ERROR = "CONTINUE"
;
First time it run successfully & data was loaded. when tried to re-run the copy command it failed to load data & returned - Copy executed with 0 files processed.
Then checked the documentation & understood that I should FORCE=TRUE but still gets the same message - Copy executed with 0 files processed.
COPY INTO DB.SCHEMA.TABLE
FROM s3://test1/test.tsv
STORAGE_INTEGRATION = "TEST_S3"
FILE_FORMAT = (type = "CSV" field_delimiter = ' ' skip_header = 0)
ON_ERROR = "CONTINUE"
FORCE = TRUE
;
Couldn't understand what I'm doing wrong. Does any one have any idea?
snowflake.account_usage.copy_history
and see if there were any errors? – Simon D