[Bug] #1365
Labels
bug
Something isn't working
customer request
An Astronomer customer made requested this
dbt:test
Primarily related to dbt test command or functionality
duplicate
This issue or pull request already exists
execution:local
Related to Local execution environment
Milestone
Astronomer Cosmos Version
1.7.1
dbt-core version
1.7.18
Versions of dbt adapters
dbt-redshift==1.7.7
LoadMode
AUTOMATIC
ExecutionMode
LOCAL
InvocationMode
None
airflow version
2.7.3
Operating System
MacOS
If a you think it's an UI issue, what browsers are you seeing the problem on?
No response
Deployment
Astronomer
Deployment details
No response
What happened?
I have a dbt test that looks like this:
Cosmos runs this test after the analytical_d_item model as well as after the inventory_flag_sap model, so the test is run two times. Because of this, the test runs before both models have run and therefore it always fails. The test should run after both models it depends on have run.
Relevant log output
How to reproduce
Create three files:
a.sql
b.sql
assert_c.sql
Since b depends on a, it will be run after a's tests have run. assert_c is run directly after a, even though it depends on b as well. Cosmos ignores this. assert_c will fail, because table b doesn't exist yet.
Anything else :)?
No response
Are you willing to submit PR?
Contact Details
No response
The text was updated successfully, but these errors were encountered: