add depends_on to schema object or CLI option to control deployment sequence #41
Replies: 2 comments 2 replies
-
Objects in schema A might depend on objects in schema B, and the other way around. Circular dependency would break the config application process. Also, it would considerably affect the performance, especially if you have a large number of objects. Snowflake DDL operations may take up to a few seconds sometimes. It is not very noticeable, since SnowDDL runs all resolvers in parallel. But it would be very apparent with no parallelism. You may simulate it now by setting |
Beta Was this translation helpful? Give feedback.
-
I am seeing some inconsistencies with depends_on where the objects are not always created in an order that will prevent issues but have not yet been able to pinpoint the exact scenarios that cause the problem. I have already checked that there are no circular dependencies in my project. Are there any known limitations of "depends_on" that we should be aware of? Does it work across schemas and databases? Are there object types that it doesn't handle (e.g. depends_on: function_x)? Are there limits to the levels of nesting dependencies? Apologies in advance for reviving an older thread |
Beta Was this translation helpful? Give feedback.
-
I understand Dependency Management can be tricky. However, I think it would be great if there is a more deterministic way to control the build/deploy sequence.
Since it is a common practice to segregate different functional areas by SCHEMA, it would be great if there is a way to control deploy sequence so that for instance staging schema and its objects are deployed before public schema objects.
Otherwise, a CLI option to specify which schema to build would solve the problem too.
Beta Was this translation helpful? Give feedback.
All reactions