Skip to content

Commit

Permalink
Snowflake Loader: fix folder monitoring copy statement (close #851)
Browse files Browse the repository at this point in the history
  • Loading branch information
spenes committed Apr 28, 2022
1 parent cf9bc8e commit 1b54654
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ object Snowflake {
// This is validated on config decoding stage
val stageName = monitoringStage.getOrElse(throw new IllegalStateException("Folder Monitoring is launched without monitoring stage being provided"))
val frPath = Fragment.const0(s"@$schema.$stageName/${source.folderName}")
sql"~ INTO $frTableName FROM $frPath FILE_FORMAT = (TYPE = CSV)"
sql"COPY INTO $frTableName FROM $frPath FILE_FORMAT = (TYPE = CSV)"

case Statement.EventsCopy(path, _) =>
val frTableName = Fragment.const(EventsTable.MainName)
Expand Down

0 comments on commit 1b54654

Please sign in to comment.