Skip to content

automate snowDDL #37

Answered by littleK0i
PradeepReddy-epi asked this question in Q&A
Mar 13, 2023 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

In my opinion, running SnowDDL from CLI is likely the best and the safest way to use it. I'll explain why.

Snowflake is a cloud DWH. Unlike traditional "on-premises" DWH, as a customer you have no control over Snowflake version updates. It is possible for Snowflake to release an update with bug or incompatible behaviour change. It may affect schema management tools and cause unintended consequences.

Also, Snowflake does not support transactions for DDL changes. It is possible to get stuck in between of "old" and "new" state.


The most reasonable release workflow seems to be the following:

  1. Run snowddl apply, but do not add --apply-unsafe. Only "safe" changes will be applied automatically.…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@PradeepReddy-epi
Comment options

@PradeepReddy-epi
Comment options

@littleK0i
Comment options

Answer selected by PradeepReddy-epi
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