-
Notifications
You must be signed in to change notification settings - Fork 401
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 Lookups Return NULL #1630
Comments
I can confirm from TF state with v 0.84.1
|
We started encountering this issue earlier this week with some of our Snowflake accounts. We are currently on version 0.90.0 of the provider. Everything had been working fine up through this past Tuesday afternoon. We started experiencing the issue on Wednesday morning. To make things a bit more challenging the issue was only occurring with a subset of our Snowflake accounts. What we determined to be the root cause of the issue was that the account parameter QUOTED_IDENTIFIERS_IGNORE_CASE had been set to TRUE late Tuesday afternoon on the accounts that were exhibiting the issue. This morning, I was able to confirm that setting the QUOTED_IDENTIFIERS_IGNORE_CASE parameter back to the default of FALSE made the issue go away. This isn't ideal, but we at least know what causes it now. In short, to recreate the issue run the following command in Snowflake: ALTER ACCOUNT SET QUOTED_IDENTIFIERS_IGNORE_CASE = TRUE; Then run TF using the snowflake_system_get_privatelink_config data source and access the output to see that nulls are returned. EDIT: Also wanted to add that running SELECT SYSTEM$GET_PRIVATELINK_CONFIG(); in Snowflake returns the expected values when QUOTED_IDENTIFIERS_IGNORE_CASE is set to TRUE. The issue only occurs via the data source. |
Hey @jasonjoneszywave. Thanks for the detailed description! The issue probably comes from the way the underlying request is constructed:
Reworking the |
Provider Version
0.58.2
Tried many versions
Terraform Version
1.4.2 and 1.3.7
Describe the bug
Data look ups return null for all values.
For example I started with
data "snowflake_system_get_privatelink_config" "this" {}
and tried also with
data "snowflake_system_get_snowflake_platform_info" "this" {}
data "snowflake_current_account" "this" {}
but all return null except for snowflake_system_get_snowflake_platform_info.aws_vpc_ids
every other value is empty.
Expected behavior
data look up returns data
Code samples and commands
Additional context
I can verify that auth is working because otherwise I would get an error. Same if I change the role that doesn't have access to private. I also tried with a new account and SSH key auth. I logged in the UI with the same account and I am able to get the privatelink info.
The text was updated successfully, but these errors were encountered: