-
Let's say I have two dbt models: Based on dbt documentation, indirect selection:
When doing dbt build with dbt-core: When doing dbt build with dbt-core: However on Dagster, when Is this behaviour expected? Seems like Dagster is not respecting dbt indirect test selection. Below is how I am loading dbt models as Dagster assets:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hi @bolinzzz, when Dagster asset checks are enabled, we override the dbt indirect selection setting to empty, then pass the exact set of tests we want to run. It's possible with sensors/schedules to customize which tests run. However currently with Auto materialize, every check on the asset will run with the materialization. We have a tracking issue to customize asset checks + auto materializing here: #16719. Another relevant issue is to be able to exclude certain tests from being ingested with @dbt_assets: #18124 Currently to stick with auto materializing and to not execute this test, you'll have to disable dbt asset checks until we close one of these issues. |
Beta Was this translation helpful? Give feedback.
-
Hey @johannkm is there a timeline for this? I like loading my dbt tests as asset checks, but I am finding some of my dbt tests are being run in jobs because they're referenced by another model (i.e. model_a is materialized by job_a, and model_b is materialized by job_b, but since model_b has a generic test with a ref to model_a, the model_b generic test is being run in job_a). |
Beta Was this translation helpful? Give feedback.
Hi @bolinzzz, when Dagster asset checks are enabled, we override the dbt indirect selection setting to empty, then pass the exact set of tests we want to run.
It's possible with sensors/schedules to customize which tests run. However currently with Auto materialize, every check on the asset will run with the materialization. We have a tracking issue to customize asset checks + auto materializing here: #16719.
Another relevant issue is to be able to exclude certain tests from being ingested with @dbt_assets: #18124
Currently to stick with auto materializing and to not execute this test, you'll have to disable dbt asset checks until we close one of these issues.