Skip to content

Conversation

@ssassi
Copy link

@ssassi ssassi commented Mar 13, 2025

Problem

Try applying a config file like this:

roles:
  - name: I-WILL-BE-QUOTED

Resource is created successfully the first time. But on subsequent runs, snowflake will complain saying that the resource already exists. The cause of the issue is the "SHOW" statement not finding the already created role.

Solution

This PR removes the quotes when running the SHOW statement.
The statement ran was SHOW ROLES LIKE '"I-WILL-BE-QUOTED"' instead of SHOW ROLES LIKE 'I-WILL-BE-QUOTED'.

@ssassi ssassi changed the title Quoted resources are not fetched when using "SHOW ... LIKE ..." statements Quoted resources are not fetched Mar 13, 2025
@ssassi ssassi changed the title Quoted resources are not fetched Resources with quoted names are not fetched Mar 13, 2025
@ssassi ssassi changed the title Resources with quoted names are not fetched [FIX]: Resources with quoted names are not fetched Mar 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant