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
# snowflake_stage.this will be created+resource"snowflake_stage""this" {
+aws_external_id=(known after apply)
+database="DB"+id=(known after apply)
+name="test"+schema="SCHEMA"+snowflake_iam_user=(known after apply)
+storage_integration="my-integration"+url="s3://bucket/path"
}
terraform apply error:
snowflake_stage.this: Creating...
╷
│ Error: error creating stage test: 001003 (42000): SQL compilation error:
│ syntax error line 1 at position 85 unexpected '-'.
│ syntax error line 1 at position 85 unexpected '-'.
│ syntax error line 1 at position 97 unexpected '<EOF>'.
│
│ with snowflake_stage.this,
│ on main_stages.tf line 1, in resource "snowflake_stage" "this":
│ 1: resource "snowflake_stage" "this" {
│
╵
Operation failed: failed running terraform apply (exit 1
…al characters
To support storage integration names including special characters, this
change adds quotes to the names, to avoid generating invalid SQL (e.g.
when names have dashes).
FixesSnowflake-Labs#1080
…al characters (#1081)
To support storage integration names including special characters, this
change adds quotes to the names, to avoid generating invalid SQL (e.g.
when names have dashes).
Fixes#1080
Co-authored-by: Jason Lin <[email protected]>
Provider Version
snowflake-labs/snowflake v0.36.0
Terraform Version
Terraform 1.2.3
Describe the bug
When trying to create a Stage that has a storage integration with special characters in its name (e.g. dashes), apply fails.
Expected behavior
Stage creation/alter should work for any allowed characters in Snowflake for storage integration names.
Code samples and commands
Example code:
terraform plan
output:terraform apply
error:Generated SQL:
The text was updated successfully, but these errors were encountered: