SnowDDL - Possibility to short circuit the run of snowddl if no changes to the files/database? #174
-
Simple question. Is it possible to end the run early based on checksums or another method? EDIT: This question was attempting to get at why SnowDDL ran some models over and over despite seemingly no changes to the config files. There were minute formatting issues, empty string comments, and default values that caused this. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 10 replies
-
Need a bit more info on specific use case. Not sure if partial runs make sense in production environment, since objects heavily depend on each other. And object might be changed accidentally sometimes. Everything must be checked every time in order to guarantee desired config to match actual Snowflake account state. |
Beta Was this translation helpful? Give feedback.
I did some tests and now I see what is going on.
Apparently, Snowflake Python driver has a line of code to strip spaces, tabs and newlines from the beginning and the end of each statement. It does not happen in Web interface.
SnowDDL did not normalise anything, but driver did.
I think it me reasonable to add some normalisation to SnowDDL itself. Here is the patch: b7a090c
It will go live with next major update.
Thank you for pointing this out.