-
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
Provider tries to set column collation when changing numeric types. #2588
Comments
Hey, @MattMcFahn 👋 Thanks for reporting the issue. |
Thanks @sfc-gh-jcieslak ! I'll try and find some time to look myself also. I think it might also be related to where analogous types have been converted internally. E.g. when we're specifying type as We've been able to work around this by identifying what the conversion will be and specifying that in the first instance - e.g. using |
|
Fix for #2588 In the alter column call collate was always added which caused the error non-text (and probably text too) data types ## Test Plan <!-- detail ways in which this PR has been tested or needs to be tested --> * [x] test case for data type alter ## References * [ALTER TABLE](https://docs.snowflake.com/en/sql-reference/sql/alter-table)
Hey, the fix was recently released. Please see if the issue has been resolved in the latest version of the provider. Thanks :) |
Terraform CLI and Provider Versions
Terraform v1.5.7
on darwin_arm64
Provider version:
0.87.0
Terraform Configuration
Expected Behavior
Apply the configuration as-is to create a new database, schema and table are created in the relevant snowflake account.
The table has one column,
SOME_COLUMN
, which has typeNUMBER(38,0)
.Then change the column type to e.g.
NUMBER(36,0)
, and re-apply.Expectation:
Actual Behavior
The column fails to modify with the following message:
Steps to Reproduce
terraform apply
NUMBER(38,0)
toNUMBER(36,0)
terraform apply
How much impact is this issue causing?
Medium
Logs
No response
Additional Information
Introduced in the upgrade from
0.86.0
to0.87.0
, by #2496. We also can't use0.86.0
due to this issue: #2535The text was updated successfully, but these errors were encountered: