-
Hi. We're working quite a bit with Dynamic Tables, and we are anticipating needing to do "special handling" of state transitions for them and associated resources. Is there a way we can, using singleDB CLI, make custom handling for DTs? I can see some ways to shoehorn it, and we can of course fork and PR. Thoughts? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
You can define custom resolvers and overload existing ones using exactly the same approach as you did with parsers. But I would not recommend adding any logic which goes out of scope of object management. SnowDDL was designed for commands executed instantly and in parallel. It is not a good fit for something which may run for many hours, like dynamic table refresh. It will be locked in execution, and you won't get final output until everything is done. Also, I would not recommend using dynamic tables in general. You may get much better results and much more control with any external orchestration tool running plain SQL. |
Beta Was this translation helpful? Give feedback.
-
One followup to this is: Do I need a custom entrypoint if I want to add custom Blueprints? I would expect so because it seems that Custom Blueprint would depend custom resolvers. Yes? |
Beta Was this translation helpful? Give feedback.
You can define custom resolvers and overload existing ones using exactly the same approach as you did with parsers.
But I would not recommend adding any logic which goes out of scope of object management. SnowDDL was designed for commands executed instantly and in parallel. It is not a good fit for something which may run for many hours, like dynamic table refresh. It will be locked in execution, and you won't get final output until everything is done.
Also, I would not recommend using dynamic tables in general. You may get much better results and much more control with any external orchestration tool running plain SQL.