-
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
DATA_RETENTION_TIME_IN_DAYS on databases not using account level value #1800
Comments
We are seeing a similar issue where the database level retention policy is being set to a default 1. The provider is querying Snowflake to get the database details correctly however it is then unable to parse those results into the required struct. Snowflake now returns an additional field, e.g.
Unfortunately the provider doesn't error and carries on without logging an error, although if we set we can see
We can see a successful A couple of potential fixes
|
So I think my issue is a different issue caused by default enablement of https://community.snowflake.com/s/article/7-19-Behavior-Changes-June-5-8-2023 I have created #1882 for my issue |
Hey @emoyer0928. The behavior of falling back to 1 should have been fixed with #2029. It was released as a part of https://github.com/Snowflake-Labs/terraform-provider-snowflake/releases/tag/v0.71.0 release. Can you confirm that it fixed it for you? |
Closing due to lack of response. @emoyer0928 please bump to the newest version and create new issue if the problem persists. |
Provider Version
This problem was introduced in v0.62.0. It is not an issue with v0.61.0.
Describe the bug
We set the DATA_RETENTION_TIME_IN_DAYS at the Snowflake account level. In previous versions of the provider, the DATA_RETENTION_TIME_IN_DAYS for databases matched the value set at the account level. In v0.62.0 this value is set to 1 day. Terraform attempts an update in-place to change the value from what we set at the account level to a 1.
Expected behavior
The DATA_RETENTION_TIME_IN_DAYS for a database should use:
Code samples and commands
The text was updated successfully, but these errors were encountered: