Skip to content

Is anybody running SnowDDL directly against your SQL source code in your source-code repository? #61

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

You must be logged in to vote

Interestingly enough, the very first implementation of this tool was based on SQL configs. We've parsed SQL to extract the desired object state and compared it with actual object state in Snowflake account.

But we had to drop this idea relatively quickly and switched entirely to YAML. Unfortunately, SQL in Snowflake is not reliable.

Reasons:

  1. Snowflake can release an update anytime, which may change syntax of CREATE command. Most changes are backwards compatible, but it is not uncommon for things to break.
  2. There are many undocumented and hidden parameters.
  3. There are "synonyms", especially for data types. For example: "STRING" type is actually "VARCHAR". "INTEGER" is synonym for "DECIMAL".…

Replies: 2 comments 2 replies

Comment options

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

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

@JohnL4
Comment options

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