Could anyone possibly advise me on how I can check the results of my data load from S3 to Snowflake.
The load process is batch oriented where I drop files to a S3 bucket from where in Snowflake, we ingest the data into permanent tables by querying stages that read from the files.
Once the data from a file is processed the file needs to be moved to an archive folder.
I'm struggling with how I can complete the last step?
I see a few options in mind but not sure how good they are option 1 - an external function in Snowflake that will raise an event in AWS that will trigger a lambda function to move the file. I think it's a bit flaky
option 2 - write load results into an audit table in Snowflake then then from aws poll this table and move all files listed in it as processed to the archive - might work, but a bit old school, also not real time so will require extra querying on Snowflake side to prevent duplicates
option 3 - write a file straight to the stage and archive folders and delete it from Snowflake using delete option of the load command - not ideal and a bit workaround-ish.
Many thanks in advance. I guess no need to tell that I'm a newby for Snowflake :-)