
ThinkETL
February 26, 2025 at 05:56 AM
Theย ๐๐๐๐ ๐๐๐๐ย command in Snowflake is a powerful tool for efficiently loading data from staged files into database tables. Key features include:
โ๏ธ ๐ญ๐๐๐๐๐๐๐ ๐ญ๐๐๐ ๐ฏ๐๐๐
๐๐๐๐:ย
Supports loading from internal and external stages.
โ๏ธ ๐ญ๐๐๐ ๐ญ๐๐๐๐๐ ๐บ๐๐๐๐๐๐:ย
Works with CSV, JSON, AVRO, ORC, PARQUET, and XML formats.
โ๏ธ ๐ซ๐๐๐ ๐บ๐๐๐๐๐๐๐๐ & ๐ป๐๐๐๐๐๐๐๐๐๐๐๐๐:ย
Allows selecting specific columns and applying transformations during load.
โ๏ธ ๐ท๐๐๐๐๐๐ ๐ด๐๐๐๐๐๐๐ & ๐ญ๐๐๐ ๐บ๐๐๐๐๐๐๐๐:ย
Enables loading specific files usingย ๐๐๐๐๐๐๐ย orย ๐
๐๐๐๐ย options.
โ๏ธ ๐ฌ๐๐๐๐ ๐ฏ๐๐๐
๐๐๐๐:ย
Provides multiple strategies likeย ๐๐๐๐๐๐๐๐,ย ๐๐๐๐_๐
๐๐๐, andย ๐๐๐๐๐_๐๐๐๐๐๐๐๐๐.
โ๏ธ ๐ฝ๐๐๐๐
๐๐๐๐๐ ๐ด๐๐
๐:ย
Allows checking file integrity before loading usingย VALIDATION_MODE.
โ๏ธ ๐ด๐๐๐๐
๐๐๐ ๐ด๐๐๐๐๐๐:ย
Maps metadata columns (e.g., filename, row number) usingย ๐๐๐๐๐๐๐_๐๐๐๐๐๐๐๐.
โ๏ธ ๐ท๐๐๐๐๐๐๐๐๐๐ ๐ถ๐๐๐๐๐๐๐๐๐๐๐:ย
Includes options likeย ๐๐๐๐_๐๐๐๐๐,ย ๐
๐๐๐๐, andย ๐๐๐๐๐_๐๐_๐๐๐๐๐๐_๐๐๐๐.
โ๏ธ ๐ญ๐๐๐ ๐ด๐๐๐๐๐๐๐๐๐:ย
Supports automatic file removal from stages usingย ๐๐๐๐๐.
Checkout the complete article for complete details:
https://thinketl.com/data-load-using-copy-into-command-in-snowflake
#thinketl #snowflake #snowflakedatacloud #cloud #dataloading