Skip to content

Quotes in resource names #558

Answered by camaya
camaya asked this question in Q&A
Discussion options

You must be logged in to vote

As most of the times, the answer to this was on the documentation, exactly here: https://docs.snowflake.com/en/sql-reference/identifiers-syntax.html#controlling-case-using-the-quoted-identifiers-ignore-case-parameter

Basically, by default "test" and test are treated differently and if you want both of them to be treated as equals, you need to set this parameter in Snowflake: QUOTED_IDENTIFIERS_IGNORE_CASE = true. The parameter can be set at different levels, check https://docs.snowflake.com/en/sql-reference/parameters.html#session-parameters.

I use a user specifically for Terraform so I changed the parameter for that user like this:

ALTER USER my_user SET QUOTED_IDENTIFIERS_IGNORE_CASE = …

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by camaya
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants