Skip to content

Auto-materialization for dbt views using code version #18035

Answered by OwenKephart
cbini asked this question in Q&A
Discussion options

You must be logged in to vote

This is now possible using the Declarative Automation. You can set the automation_condition for your dbt views to AutomationCondition.code_version_changed() to have them only materialize when a code version change is detected.

You can accomplish this by updating the get_automation_condition() method on your DagsterDbtTranslator to return this condition for dbt models which are views.

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
3 replies
@cbini
Comment options

@cbini
Comment options

@sryza
Comment options

Comment options

You must be logged in to vote
1 reply
@ThomasRolfsnes-EP
Comment options

Answer selected by OwenKephart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
integration: dbt Related to dagster-dbt area: declarative-automation Related to Declarative Automation, AutomationConditions and Auto Materialization
4 participants