dbt-project-evaluator icon indicating copy to clipboard operation
dbt-project-evaluator copied to clipboard

Macro dbt_utils.star causes source fanout rule warning

Open qmoret opened this issue 1 year ago • 2 comments

Describe the bug

When using the dbt_utils.star macro in a staging model, there are two references to the source that are captured by the source fanout rule, for instance :

parent	model_children
prod.murfy_erp_collectionfile	stg_murfy_erp__collectionfiles, stg_murfy_erp__collectionfiles

Expected results

I would like this to be accepted. I know I could add an exception on the source but I would still like to check if it is referenced elsewhere.

System information

v0.1.2

Which database are you using dbt with?

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

qmoret avatar Aug 18 '22 16:08 qmoret

Thanks @qmoret ! We will have a look.

b-per avatar Aug 19 '22 11:08 b-per

hey @qmoret -- can you give a bit more detail into the model code you have in this staging model? Curious to see how the star macro ends up with two references to the source! Having even some pseudocode would help us replicate this issue

dave-connors-3 avatar Aug 26 '22 16:08 dave-connors-3