Skip to content

Best Practice for Pre- and Post- deployment script #3

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

You must be logged in to vote

Ok, it is a very interesting question. I'll describe the "best practice" from my point of view, followed by advice about automation.

1) It is not recommended to fully automate DDL management for Snowflake

Reasons:

  1. Snowflake does not support transactions for DDL operations. Snowflake account may get stuck between "old" and "new" object schema version very easily.
  2. Snowflake may release changes which are not compatible with existing code without warning. For example, SHOW TABLES output may change and break existing scripts.

So at least a small amount of manual DDL review & execution is required, especially for business critical Snowflake accounts.

SnowDDL introduces a concept of "safe" and…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by minghungcho
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