Skip to content

Help with Programmatic config to Skip certain types of objects in DEV environment #169

Answered by littleK0i
JefStat asked this question in Q&A
Discussion options

You must be logged in to vote

Aha. The following approach might work:

  1. Create global role granting read access to objects referred in our VIEW.
  2. Grant global role to schema owner role using parameter owner_global_roles: https://docs.snowddl.com/basic/yaml-configs/schema
  3. Define VIEW with original SQL text. Do not add anything in depends_on. We assume all external objects already exist.

SnowDDL will be able to create view referring to external objects. More importantly, it will be able to detect when this view becomes broken due to various changes in source objects. It is very common for views with SELECT * FROM ... . Such view will be recreated automatically.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@JefStat
Comment options

@littleK0i
Comment options

Answer selected by JefStat
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