TYPE = PARQUET
COMPRESSION = AUTO | LZO | SNAPPY | NONE
SNAPPY
Files are compressed using the Snappy algorithm by default. You can optionally specify this value.
None if the above. by default it should be Snappy.
"When unloading data, files are compressed using the Snappy algorithm by default. You can optionally specify this value."
https://docs.snowflake.com/en/sql-reference/sql/create-file-format#type-parquet:~:text=When%20unloading%20data%2C%20files%20are%20compressed%20using%20the%20Snappy%20algorithm%20by%20default.%20You%20can%20optionally%20specify%20this%20value.
C - LZO:
https://docs.snowflake.com/en/sql-reference/sql/copy-into-location.html#type-parquet
Options
Default: Auto = Snappy
LZO
Snappy
None
Other options are:
if You try You will disvover that "By default, all unloaded data files are compressed using gzip" is false for parquet file type
COPY INTO @SG_PROVA FROM GAME_LOGS
FILE_FORMAT = ( TYPE = PARQUET);
-- sg_prova/data_0_0_0.snappy.parquet
COPY INTO @SG_PROVA/data2 FROM GAME_LOGS
FILE_FORMAT = ( TYPE = PARQUET COMPRESSION = LZO);
-- sg_prova/data2_0_0_0.lzo.parquet
COPY INTO @SG_PROVA/data3 FROM GAME_LOGS
FILE_FORMAT = ( TYPE = PARQUET COMPRESSION = GZIP);
-- Invalid compression format GZIP
https://docs.snowflake.com/en/user-guide/intro-summary-unloading.html
Compression of Output Data Files
The following table describes how Snowflake handles compression for the output files generated by Snowflake when unloading data:
Location of Files
Supported
Notes
Internal or external location
gzip
By default, all unloaded data files are compressed using gzip, unless compression is explicitly disabled or one of the other supported compression methods is explicitly specified.
bzip2
Brotli
Zstandard
When unloading data, files are compressed using the Snappy algorithm by default. If unloading data to LZO-compressed files, specify this value.
https://docs.snowflake.com/en/sql-reference/sql/create-file-format.html#type-parquet
upvoted 2 times
...
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Raju039
Highly Voted 1 year, 8 months agoPrashantGupta1616
Most Recent 5 months, 1 week agoPrashantGupta1616
5 months, 2 weeks ago_yyukta
8 months, 4 weeks agoMultiCloudIronMan
1 year, 4 months agodmitriypo
1 year, 6 months agoaroma
1 year, 7 months agoKarBiswa
1 year, 8 months agoEmiB
1 year, 8 months agoSexyPotato
1 year, 8 months agothejeby
1 year, 9 months agoBigDataBB
1 year, 10 months agoSV1122
1 year, 10 months agoSD1SD
1 year, 10 months agoAlexbDku
1 year, 11 months agohalol
1 year, 11 months ago