Skip to content
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

[Feature]: Add option to set user level parameter -> JDBC_QUERY_RESULT_FORMAT in Snowflake #3362

Open
1 task
suren-hf opened this issue Jan 28, 2025 · 1 comment
Labels
category:documentation category:resource feature-request Used to mark issues with provider's missing functionalities resource:user Issue connected to the snowflake_user resource

Comments

@suren-hf
Copy link

suren-hf commented Jan 28, 2025

Company Name

Hellofresh

Use Cases or Problem Statement

Problem Statement

The snowflake_user resource currently lacks support for managing user-specific parameter -> JDBC_QUERY_RESULT_FORMAT. This forces teams to manually execute SQL scripts like:

ALTER USER SRV_RTE_MANUFACTURING SET JDBC_QUERY_RESULT_FORMAT = 'JSON';  

This gap hinders automation and consistency.

Use Case

Extending the snowflake_user resource to support JDBC_QUERY_RESULT_FORMAT parameter would simplify IaC workflows by combining user creation and parameter management in a single resource.

Category

category:resource

Object type(s)

resource:user

Proposal

Enhance the snowflake_user resource to allow setting JDBC_QUERY_RESULT_FORMAT parameter directly.

For example:

resource "snowflake_user" "example" {  
  name                    = "SRV_RTE_MANUFACTURING" 
  // Other parameters
  jdbc_query_result_format = "JSON"  
} 

This improvement streamlines automation and aligns user management with Terraform's IaC principles.

How much impact is this issue causing?

Low

Additional Information

No response

Would you like to implement a fix?

  • Yeah, I'll take it 😎
@suren-hf suren-hf added the feature-request Used to mark issues with provider's missing functionalities label Jan 28, 2025
@sfc-gh-asawicki
Copy link
Collaborator

Hey @suren-hf. Thanks for reaching out to us.

While we were reworking the snowflake_user resource, we made the decision to support "only" the parameters documented in the official Snowflake docs (https://docs.snowflake.com/en/sql-reference/parameters). It's around 60 parameters. However, there are around as many parameters undocumented but visible in the SHOW PARAMETERS IN USER output (JDBC_QUERY_RESULT_FORMAT included). Before we add any of these missing parameters, we want to have clarity: why were they not included in the docs?
For now, you can use https://registry.terraform.io/providers/Snowflake-Labs/snowflake/latest/docs/resources/execute to avoid manual work.
You can also file an issue to official Snowflake support that the parameter is not listed in the docs.

@sfc-gh-asawicki sfc-gh-asawicki added resource:user Issue connected to the snowflake_user resource category:documentation category:resource labels Jan 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:documentation category:resource feature-request Used to mark issues with provider's missing functionalities resource:user Issue connected to the snowflake_user resource
Projects
None yet
Development

No branches or pull requests

2 participants