Monday, November 21, 2022

Databricks Secret Scopes

 https://hevodata.com/learn/databricks-secret/#51



Monday, January 3, 2022

Snowflake - Copy single file from Snowflake to S3

How to generate a single file in snowflake while copying data from Snowflake to S3/Blob/Etc.,

Add option single = true 

This option would avoid the 0_0_0 at the end of the file name.

Code snippet :

COPY INTO s3://<bucket>/test_data/file1.csv

FROM TESTDB..TEST1

FILE_FORMAT = (type = 'CSV')

SINGLE = TRUE


Reference:

https://docs.snowflake.com/en/sql-reference/sql/copy-into-location.html#unloading-data-to-a-single-file