I have a task to load a large table from Snowflake to s3. I need to load 1000 records from the table of snowflake in a csv file to s3, and consecutively next 1000 records from the table in another csv file and so on.
For example, I have a table of 15000 records in Snowflake and want to load 15 separate files from the table to s3 each containing 1000 records named with file_1.csv,file_2.csv,.....,file_15.csv and then zip all these files and unload this single zip file to s3.
I referred https://docs.snowflake.com/en/user-guide/data-load-considerations-prepare.html and many other sources but could not figure it out. I'm very new to Snowflake.