-
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
Task cannot be updated to remove "when" #2036
Comments
Hey @shellderp. Thanks for creating the ticket. The problem comes from a gap in the |
@shellderp can you confirm it works? |
it works to drop and recreate, yes |
Changed the behavior in #2479 (conditional forceNew). |
Related issues: #2036 #2207 #2346. - (#2207) The reason was the change in parsing the `SHOW TASKS` response for `after` parameter. In earlier versions, the parsing was incorrect for the identifiers containing dot characters. The new one fixed the dot case but Snowflake identifiers surprised us one more time, and the basic case, without any `"` was not supported correctly. - (#2036) There is no way to unset `when` currently in Snowflake. We don't want to always `ForceNew` for when change. For that reason we run forceNew conditionally using `customdiff.ForceNewIfChange`. - (#2346) Waiting for answers but maybe this fix will also solve this issues.
Closing the issue because it was fixed. @shellderp please create a new one if you encounter the bad behavior in the newest provider version. |
Provider Version
0.70.0
Terraform Version
v1.2.4
Describe the bug
Expected behavior
The task should be recreated with no
when
condition. In Terraform this could be implemented as "forces replacement"Code samples and commands
For example, apply the following
Then change it to this and apply again
Additional context
Adding a
when
condition to a task without thewhen
does already work.The text was updated successfully, but these errors were encountered: