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
The SQL query produced by snowflake_file_format resource does not quote the binary_format parameter. The resulting query looks like (shortened for brevity):
│ Error: 001003 (42000): SQL compilation error:
│ syntax error line 1 at position 284 unexpected '-'.
│ syntax error line 1 at position 284 unexpected '-'.
Expected behavior
The SQL query that is produced should put quotes around UTF-8, like so:
Run terraform apply with TF_LOG=DEBUG terraform apply -target=path.to.file_format and grab the SQL it produces. Fix the SQL and run it manually through a worksheet. Then import the resource using the instructions from here.
Hey @ivica-k
I'm sorry we're responding so late on this one, but I'm pretty certain the issue was that the binary_format = "UTF-8" is an invalid value in Snowflake as you can see here. The correct value would be binary_format = "UTF8". Please confirm and close the ticket if that was the case.
Provider Version
0.68.2
Terraform Version
1.4.2
Describe the bug
The SQL query produced by
snowflake_file_format
resource does not quote thebinary_format
parameter. The resulting query looks like (shortened for brevity):This produces an error
Expected behavior
The SQL query that is produced should put quotes around
UTF-8
, like so:Code samples and commands
Simple
terraform apply
will fail.Additional context
Importing the file format and then applying to reconcile changes produces another error, as shown in #1947
The text was updated successfully, but these errors were encountered: