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
I have built a dbt model (say model_a) which targets a database _analysis and depends on source table source_b in the database _raw. The model builds fine so I know that the model's not buggy but the unit test fails with the following error:
Compilation Error in model source_b (models/source.yml)
Not able to get columns for unit test 'source_b' from relation "_raw"."public"."source_b"
> in macro get_fixture_sql (macros/unit_test_sql/get_fixture_sql.sql)
> called by model source_b (models/source.yml)
I have built a dbt model (say
model_a) which targets a database_analysisand depends on source tablesource_bin the database_raw. The model builds fine so I know that the model's not buggy but the unit test fails with the following error:Additional Information:
source_b"_raw"."public"."source_b"does exist on the database and is dbt profile is able to read from it (because the model get's built)source_bwith atablematerialized model ofsource_bin the unit test and the model formodel_a.I'm happy to share more and/or contribute to resolving this ticket.
Originally posted by @kd-nishanth in dbt-labs/dbt-core#9686 (comment)