Skip to content
This repository was archived by the owner on Mar 7, 2024. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -445,9 +445,6 @@ class Snowflake {
ON_ERROR = 'skip_file'
PURGE = ${purge};`

if (debug) {
console.log(querySqlText)
}
await this.execute({
sqlText: querySqlText,
})
Expand Down Expand Up @@ -619,9 +616,6 @@ async function copyIntoSnowflake({ cache, storage, global, jobs, config }: Meta<
return
}

if (global.debug) {
console.log('Files staged for copy:', filesStagedForCopy)
}
const lastRun = await cache.get('lastRun', null)
const maxTime = global.copyCadenceMinutes * 60 * 1000
const timeNow = new Date().getTime()
Expand Down Expand Up @@ -655,7 +649,7 @@ async function copyIntoSnowflake({ cache, storage, global, jobs, config }: Meta<
`Failed to copy ${String(filesStagedForCopy)} from object storage into Snowflake. Retrying in 3s.`
)
}
}
}

await jobs
.retryCopyIntoSnowflake({ retriesPerformedSoFar: 0, filesStagedForCopy: chunkStagedForCopy })
Expand Down