简体   繁体   中英

COPY INTO <Snowflake table> from AWS S3

When we run a "COPY INTO from AWS S3 Location" command, does the data-files physically get copied from S3 to EC2-VM-Storage (SSD/Ram)? Or does the data still reside on S3 and get converted to Snowflake format?

And, if I run copy Into and then suspend the warehouse, would I lose data on resumption?

Please let me know if you need any other information.

The data is loaded on to Snowflake tables from the external location like S3. The files would be still be there on S3 and if there is requirement to remove these files post copy operation then one can use "PURGE=TRUE" parameter along with "COPY INTO" command.

When we run a "COPY INTO from AWS S3 Location" command, Snowflake copies data file from your S3 location to Snowflake S3 storage. Snowflake S3 location is only accessible by querying the table, in which you have loaded the data.

When you suspend a warehouse, Snowflake immediately shuts down all idle compute resources for the warehouse, but allows any compute resources that are executing statements to continue until the statements complete , at which time the resources are shut down and the status of the warehouse changes to “Suspended”. Compute resources waiting to shut down are considered to be in “quiesce” mode.

More details : https://docs.snowflake.com/en/user-guide/warehouses-tasks.html#suspending-a-warehouse

Details on the loading mechanism you are using are in docs : https://docs.snowflake.com/en/user-guide/data-load-s3.html#bulk-loading-from-amazon-s3

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM