-
Notifications
You must be signed in to change notification settings - Fork 427
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
[Bug]: Not possible to rename stage - Running into a deadlock #2972
Comments
Hey @JESCHO99. Thanks for reaching out to us. We plan to rework stages soon (https://github.com/Snowflake-Labs/terraform-provider-snowflake/blob/main/v1-preparations/ESSENTIAL_GA_OBJECTS.MD). However, this seems to be an easy fix, i.e. we have to handle this error conditionally like e.g. in the schemas (we are doing it for every resource we redesign). I should be able to squeeze it in in next week's release (if I can prove that this is really the cause as expected). |
Hey @sfc-gh-asawicki, huge thanks for the quick fix! |
Hey @JESCHO99, we had to postpone the v0.95.0 release to Monday, sorry for the inconvenience. |
Hey @JESCHO99 . |
Hey @JESCHO99. Did you check the fix? If so, can we close the issue? |
Closing due to inactivity. Please create a new issue if the problem persists in the newest version. |
Terraform CLI Version
1.5.7
Terraform Provider Version
0.92.0
Terraform Configuration
Category
category:resource
Object type(s)
resource:stage
Expected Behavior
When the provided terraform code is applied in Snowflake the Database, Schema, two tables and two named stages can be deployed successful. Everything is working as expected so far. Due to manual changes on Snowflake someone executed a rename command on one of the named stages:
alter stage LOCAL_TEST_DB.TESTING.TEST_V1 rename to POST_TEST_V1;
When executing a terraform plan now in Terraform the expected behaviour would be that terraform recognizes that the defined stage no longer exists and will show a create stage in the produced plan. When this plan is executed terraform will create a new stage having the "old" name. In Snowflake there will be the renamed "old" stage and the newly created stage with the "old" name.
Actual Behavior
After a rename of an existing stage the provider runs into an error which does not longer allow for plan, apply or destroy commands.
It seems that it is missing the behaviour that the provider can differ between a describe and a show objects like function. For example for tables the described process is working completely without errors.
Steps to Reproduce
How much impact is this issue causing?
Medium
Logs
No response
Additional Information
No response
Would you like to implement a fix?
The text was updated successfully, but these errors were encountered: