Team,
I have a query to discuss: Table to file creation in snowflake
We have used the max file size with the compression, but at some times the data which is retrieving and size it is storing in the file getting exceeds. But we remove the SINGLE=TRUE there are multiple files getting generated and takes up lot time to fix and merge the files. We need to know a step to create the file if the maximum file size exceeds??
copy into @SNOWFLAKE_AZURE_STAGE/data/load/30jan/etl_file_20210223.dat.csv.gz
from DB.SOURCE_TABLE
file_format = (
type = csv
COMPRESSION = 'gzip'
field_delimiter = '|'
field_optionally_enclosed_by = NONE
empty_field_as_null = FALSE
RECORD_DELIMITER = ''
escape='None'
)
OVERWRITE = TRUE
MAX_FILE_SIZE = 5368706371
SINGLE = TRUE
HEADER = True;