dbt-datamocktool icon indicating copy to clipboard operation
dbt-datamocktool copied to clipboard

Warning on different lifecycles

Open chaimt opened this issue 4 years ago • 3 comments
trafficstars

Describe the bug

when running dbt seed, dbt run you get a warning on sources missing they are missing since they have not yet been created. check should be only on dbt test

Steps to reproduce

delete db run dbt seed

Expected results

no warnings

Actual results

[WARNING]: Test 'test.dbt_poc.dbt_datamocktool_unit_test_stg_loyalty_merchants_enrichment_ref_stg_swell_yotpo_platform_accounts___ref_stg_swell_merchants___ref_stg_swell_vip_tiers_settings___Example_of_unit_test__ref_dmt_expected_dim_opportunity___ref_dmt_loyalty_stg_swell_yotpo_platform_accounts___ref_dmt_loyalty_stg_swell_merchants___ref_dmt_loyalty_stg_swell_vip_tiers_settings___stg_loyalty_merchants_enrichment.5891bd3b17' (models/staging/loyalty/stg_loyalty_merchants_enrichment.yml) depends on a source named 'default.stg_swell_vip_tiers_settings' which was not found

Screenshots and log output

System information

The contents of your packages.yml file:

Which database are you using dbt with?

  • [ ] postgres
  • [ ] redshift
  • [ ] bigquery
  • [ ] snowflake
  • [ x] other (specify: databricks__________)

The output of dbt --version:

0.21

chaimt avatar Nov 09 '21 14:11 chaimt

@chaimt thanks for raising this. Is 'default.stg_swell_vip_tiers_settings'" a source or a ref (model/seed)?

mjirv avatar Nov 15 '21 01:11 mjirv

ref how does the lifecycle work?

chaimt avatar Nov 15 '21 19:11 chaimt

Interesting, the fact that the error message says "depends on a source" instead of "depends on a ref" is suspicious.

I couldn't replicate it, so I wonder if something weird is going on with the other databricks/spark change I made recently. Looking into it.

mjirv avatar Nov 17 '21 02:11 mjirv