https://dagster.io/ logo
Title
z

Zachary Bluhm

11/01/2022, 2:25 PM
hey yall, does dagster-dbt currently load tests into the DAG? Looking at the source I see:
deps = _get_deps(dbt_nodes, selected_unique_ids, asset_resource_types=["model"])
Which would seem to only load models
:dagster-bot-responded-by-community: 1
a

Adam Bloom

11/01/2022, 2:29 PM
A few options currently: 1. Use the “build” command instead of “run” to materialize assets, which also runs tests (there’s a flag you can use to do this) 2. Have a separate job that runs dbt tests, and use a simple asset sensor on the dbt assets to trigger. Curious if any others have different strategies. I suspect this will also evolve over time, as assets mature.
z

Zachary Bluhm

11/02/2022, 1:36 PM
Thanks @Adam Bloom! The use case I'm trying to achieve is: Assuming we have two tables with tests (table_a, table_b), construct a DAG where table_b depends on the success of tables_a's tests table_a -> table_a_tests -> table_b -> table_b_tests Does option 1 cover that?
Actually looks like running the
build
command as mentioned works perfectly!