[Feature request] Build operator as a test behavior: TestBehavior.BUILD
#892
Labels
area:testing
Related to testing, like unit tests, integration tests, etc
customer request
An Astronomer customer made requested this
dbt:build
Primarily related to dbt build command or functionality
execution:local
Related to Local execution environment
good first issue
Good for newcomers
parsing:custom
Related to custom parsing, like custom DAG parsing, custom DBT parsing, etc
Milestone
In Cosmos 1.4, the "build" operator was added.
This is not currently being used in the DbtTaskGroup / DbtDag API. But there is one use case that can be supported: tests! You can run tests and a model in a single dbt invocation using
dbt build
.Why would someone want this? A big reason is to reduce the time of DAG runs. Splitting out tests into two Airflow tasks-- one for the node and one for the test-- can slow things down for users who are facing huge bottlenecks in spinning up nodes, e.g. they are not using partial parsing.
This is probably not a simple change because it most likely requires changing some internal assumptions regarding how Cosmos parses DAGs.
I'm very open to someone else taking on this issue, too.
The text was updated successfully, but these errors were encountered: