buildable
indirect selection mode
#2568
Labels
content
Improvements or additions to content
dbt-core v1.4
Docs impact for the v1.4 release (Jan 2023)
Contributions
Where does this content belong?
https://docs.getdbt.com/reference/node-selection/test-selection-examples#indirect-selection
Link to source material
Links
Who will use this feature?
The intended audience is an analytics engineer iteratively developing a subset of the DAG, likely modifying pre-existing models.
Feature description how it will help people
"This will benefit developers who are testing changes on a subset of the graph, rather than building the entire graph."
The author's organization typically has tests that compare models with their dependencies. e.g. confirm that the transactions add up to the same amount -- if they differ, that would be bad! During development, the'd want to run the minimal number of nodes to check that things are working rather than running the entire DAG.
Customer feedback and research
Community member @AGPapa recognized the need and opened a pull request with a solution 💪 @MichelleArk has dealt with similarly complex and specialized selection criteria with a large DAG shared over multiple teams.
How can we test or use this feature?
model_a
(probably as aseed
file)model_b
that depends only onmodel_a
model_c
that depends only onmodel_b
test_ab
that depends onmodel_a
andmodel_b
test_cb
that depends onmodel_c
andmodel_b
To compare the 3 modes:
Screenshot
Example of which modes will select each multi-parent test:
🚧 How could the existing page be improved?
A few things within this section:
indirect_selection: cautious
in a yaml selector$ dbt test --select customers orders
is included, but not explainedThe text was updated successfully, but these errors were encountered: