[Bug]: Terraform wants to change number precision of return_data_type and argument block for snowflake_masking_policy #3304
Labels
bug
Used to mark issues with provider's incorrect behavior
resource:masking_policy
Issue connected to the snowflake_masking_policy resource
resource:table
Issue connected to the snowflake_table resource
Terraform CLI Version
1.7.1
Terraform Provider Version
1.0.0
Company Name
chime
Terraform Configuration
Category
category:resource
Object type(s)
resource:masking_policy
Expected Behavior
I expect the import to work with no changes.
I originally noticed this as perpetual drift that was causing all applys to fail b/c TF couldn't drop the policy b/c it was set on several columns.
I tried changing the
argument
block and that didn't do the trick, so I removed it, recreated the policy manually and attempted to import, but I still see issues.Actual Behavior
Steps to Reproduce
Create the masking policy:
Try to import, get changes.
How much impact is this issue causing?
Medium
Logs
No response
Additional Information
I've also noticed that even after creating with number(10,6) the Snowflake UI also returns:
instead of
![image](https://private-user-images.githubusercontent.com/4086743/397172665-8987013d-7f8d-4727-a771-002f76a55e00.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5MTcxNDUsIm5iZiI6MTczODkxNjg0NSwicGF0aCI6Ii80MDg2NzQzLzM5NzE3MjY2NS04OTg3MDEzZC03ZjhkLTQ3MjctYTc3MS0wMDJmNzZhNTVlMDAucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIwNyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMDdUMDgyNzI1WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9Mjg1ZTY3ZTAwOGVkYzMwZDY1ZDQyOGVlYjU5NGRlMmE0MGFjOTBmM2MzNjNmYzdiYTA2MDk1MTMxZjRlMjA3NyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.mFrMlR6VQpUIbpv-1bz1mmvtP9Ib5CirmWWR5co0APY)
(VAL NUMBER(10,6)
which is probably relateed.Would you like to implement a fix?
The text was updated successfully, but these errors were encountered: