I coudln't load the samefile into table in snowflake using COPY command/snowpipe. I am always getting the following result
Copy executed with 0 files processed.
- I have re-created the table. Truncated the table. But the copy_history doesn't show any data
select * from table(information_schema.copy_history(table_name=>'mytable', start_time=> dateadd(hours, -10, current_timestamp())));
- I have used
FORCE = true
in COPY Command and COPY command didnt load the same file into Table. I have explicitly mentioned file path in COPY COMMAND
FROM
@STAGE_DEV/myfile/05/28/16/myfile_1.csv
) file_format = (
format_name = STANDARD_CSV_FORMAT Skip_header = 1 FIELD_OPTIONALLY_ENCLOSED_BY = '"' NULL_IF = 'NULL'
)
on_error = continue
Force = True;
Anyone faced similar issue and what would the process to load the same file again using COPY command or SNOWPIPE ? I dont have option to change file name or put the files in different S3 bucket.
ls@stage shows the following files ls@stage
@STAGE_DEV/myfile
instead of@STAGE_DEV/myfile/05/28/16/myfile_1.csv
and it loaded all 10 files. Can't a copy command be used to load individual file? Or Is my statement not correct to load a speciifc file. The File gets loaded into S3 in 10 Parts. – kar Sir