tuva-health / tuva

Main repo including core data model, data marts, reference data, terminology, and the clinical concept library
https://thetuvaproject.com/
192 stars 50 forks source link

Reference to reference_data__calendar on data_quality__eligibility_demographics #673

Open rebeccac-217 opened 4 days ago

rebeccac-217 commented 4 days ago

Describe the bug - Required

On the data_quality__eligibility_demographics model (line 39), the reference_data__calendar table is referenced as reference_data.calendar instead of {{ ref('reference_data__calendar') }}.

Because I built the reference_data__calendar model to the <prefix>_reference_data schema instead of a reference_data schema, the table cannot be found and the model fails.


Environment - Required


To Reproduce Steps to reproduce the behavior:

  1. Do not override the schema names to remove the schema prefix in a generate_schema_name
  2. Run the data_quality__eligibility_demographics model

Expected behavior

Model should run successfully


Screenshots If applicable, add screenshots to help explain your problem. image image


Additional context Add any other context about the problem here.