[CT-468] [Feature] ref() should be treated as model parent in generic test arguments #5006
Closed
1 task done
Labels
dbt tests
Issues related to built-in dbt testing functionality
duplicate
This issue or pull request already exists
enhancement
New feature or request
node selection
Functionality and syntax for selecting DAG nodes
Is there an existing feature request for this?
Describe the Feature
A generic test can have an argument that is a reference to another table. For example:
dbt build --select +my_model
should also includeother_model
in the DAG.Not including
other_model
as a parent may also cause build failures due toother_model
being build aftermy_model
when runningdbt build --select my_model other_model
.Describe alternatives you've considered
A ref() could be used in my_model.sql in a dummy set statement:
This requires having the reference in two places and does not work with seeds.
Who will this benefit?
Anyone who wishes to use generic tests that refer to other models. These are particularly useful in unit testing macros.
Are you interested in contributing this feature?
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: