-
Notifications
You must be signed in to change notification settings - Fork 180
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feature: Update Dynamic table parameters on materialization #893
Conversation
Thanks for your contribution @HenkvanDyk! The implementation for object creation looks fine, but there are a few more items to address. At a high level:
Adding the new fields to the describe macro will allow for them to be checked in the tests; the tests call the describe macro to inspect the object in the database (which in turn also tests the describe macro if you provide a non-default setting). |
This looks like it might be a result of our decoupling work earlier this year (the error is familiar). We pulled what we affectionately referred to as "the adapters zone" into its own package |
resolves #868
docs dbt-labs/docs.getdbt.com/#
Documentation updates here dbt-labs/docs.getdbt.com#4835
Problem
Dynamic tables were refreshed on each run in 1.6.x, but not in 1.7.x which resulted in 2 things:
Solution
Snowflake introduced new parameters which can be set on dynamic tables creation. Docs
The
INITIALIZE
feature allows one to refresh a dynamic table either only on schedule, or also on creation.This could allow orchestration of refreshes to be done when a dbt run is invoked, which "creates" the table again.
This could resolve #859 as well, as DBT would not need to set a refresh strategy.
Alterations of these parameters are not included as these settings cannot be altered after creation. https://docs.snowflake.com/en/sql-reference/sql/alter-dynamic-table#parameters
Checklist