You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Only source_not_null_my_source_raw_customers_id run.
Steps To Reproduce
Explained above
Relevant log output
INFO - �[0m05:12:44 1 of 2 START test relationships_stg_customers_customer_id__id__source_my_source_raw_customers_ [RUN]
INFO - �[0m05:12:44 1 of 2 ERROR relationships_stg_customers_customer_id__id__source_my_source_raw_customers_ [�[31mERROR�[0m in 0.01s]
INFO - �[0m05:12:44 2 of 2 START test source_not_null_my_source_raw_customers_id ................... [RUN]
INFO - �[0m05:12:44 2 of 2 PASS source_not_null_my_source_raw_customers_id ......................... [�[32mPASS�[0m in 0.02s]
INFO - �[0m05:12:44
Environment
Which database are you using dbt with?
postgres
redshift
bigquery
snowflake
other (specify: impala)
The output of dbt --version:
- dbt=1.6.6
- dbt-postgres==1.6.6
Which database adapter are you using with dbt?
No response
Additional Context
The reason might be that source('my_source', 'raw_customers') is used in stg_customers model's test..right?
But I don't understand why... I targeted just source, not downstream models.
Is there any way to make it test run only source_not_null_my_source_raw_customers_id when running dbt test --select source:my_source.raw_customers?
The text was updated successfully, but these errors were encountered:
github-actionsbot
changed the title
[Bug] downstream model's tests are triggered together when it uses source() or ref() in tests referring upstream models.
[CT-3387] [Bug] downstream model's tests are triggered together when it uses source() or ref() in tests referring upstream models.
Nov 15, 2023
Is this a new bug in dbt-core?
Current Behavior
Describe the bug
When I run
dbt test --select source:my_source.raw_customers
, it trigger TWO TESTS, not one test:relationships_stg_customers_customer_id__id__source_my_source_raw_customers_
source_not_null_my_source_raw_customers_id
Expected Behavior
Only
source_not_null_my_source_raw_customers_id
run.Steps To Reproduce
Explained above
Relevant log output
Environment
Which database are you using dbt with?
The output of
dbt --version
:Which database adapter are you using with dbt?
No response
Additional Context
The reason might be that
source('my_source', 'raw_customers')
is used instg_customers
model's test..right?But I don't understand why... I targeted just source, not downstream models.
Is there any way to make it test run only
source_not_null_my_source_raw_customers_id
when runningdbt test --select source:my_source.raw_customers
?The text was updated successfully, but these errors were encountered: