You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Loading multiple CSVs (Local to Snowflake) from a directory using single: true always produces an error because it tries to upload the same temporary file multiple times, while also deleting it.
Looking at your log, the issue is the duplicate PUT call:
2024-11-08 07:49:12 DBG PUT 'file:///home/tim/gitbox/eds-warehouse.git/v2/orchestrate/sling/tmp/c07fbe89/snowflake/put/2024-11-08T074911.178.zst' @CE_STG.sling_staging/"CE_STG"."PROG_STOCK_VEHICLE_TMP"/2024-11-08T074911.179 PARALLEL=8 AUTO_COMPRESS=FALSE
2024-11-08 07:49:12 DBG PUT 'file:///home/tim/gitbox/eds-warehouse.git/v2/orchestrate/sling/tmp/c07fbe89/snowflake/put/2024-11-08T074911.178.zst' @CE_STG.sling_staging/"CE_STG"."PROG_STOCK_VEHICLE_TMP"/2024-11-08T074911.179 PARALLEL=8 AUTO_COMPRESS=FALSE
The first PUT call deletes the local temp file right away, so the second call errors.
I am not seeing why it's calling PUT twice, it should only call once since it's one file
I wonder if it has to do with the fact that you're adding new columns...
A work around is to put env var SLING_KEEP_TEMP=true, the temp file will not be deleted, and be found. But you shouldn't have to, it should not be calling PUT twice for the same file 🤔
Issue Description
Description of the issue:
Loading multiple CSVs (Local to Snowflake) from a directory using
single: true
always produces an error because it tries to upload the same temporary file multiple times, while also deleting it.Sling version (
sling --version
): 1.2.20Operating System (
linux
,mac
,windows
): linuxReplication Configuration:
-d
):The text was updated successfully, but these errors were encountered: