-
Notifications
You must be signed in to change notification settings - Fork 418
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Warehouse creation fails due to quoted identifiers in the SHOW PARAMETERS IN WAREHOUSE
query.
#844
Comments
looks like PR #745 introduced @sonmezonur any thoughts? |
@sshah90 Hello. As far as I understand, provider creates warehouses using case-sensitive names (since it surrounded names with double quotes). I have not faced this issue since we only use UpperCase characters while naming our warehouses (only want case-insensitive warehouses). If you surround warehouse name with double quotes, it will probably work. Just need to change this line in the codebase: to
|
Did you try to change your variable file to:
If you don't have any special reason for using case-sensitive warehouses, I recommend trying uppercase characters in your warehouse setup. |
Hi Sonmezonur, thanks for the suggestion. With upper case, it works fine. Ideally, it should work with case-insensitive naming standards as the provider allows that with other resouces. |
We are closing this issue as part of a cleanup described in announcement. If you believe that the issue is still valid in v0.89.0, please open a new ticket. |
Provider & Terraform Version
❯ terraform version
Terraform v1.1.4
on darwin_amd64
Describe the bug
I am trying to create a warehouse using
snowflake_warehouse
resource which fails during terraform apply command withWarehouse 'TEST' does not exist or not authorized.
It does create a warehouse in Snowflake but it's not able to update terraform state files while running
SHOW PARAMETERS IN WAREHOUSE test
.Query History from Snowflake side:
All other queries do have quotes but not with warehouse one.
Expected behavior
terraform apply
command should create a warehouse and successfully exit.Code samples and commands
variable file :
Additional context
After debugging, I found this discussion and given suggestion works fine but it stores all object names as the upper case so in the next run it forces changes on other resources like schema or role.
example:
The text was updated successfully, but these errors were encountered: