Max
01/31/2024, 9:50 AM<target_schema>_elementary they all got generated in <target_schema>!
Is this expected behaviour? Why does this happen?
Is this because the dbt_packages folder is untracked? If so, what is it within this package that still runs the models even if no elementary profile has been defined/no config added to dbt_project.yml such as the below
elementary:
+schema: "elementary"Daniel Pollak
01/31/2024, 12:05 PMdbt_project.yml -
elementary:
+schema: "elementary"
?Max
01/31/2024, 12:15 PMDaniel Pollak
01/31/2024, 12:16 PMdbt_projecy.yml, it will generate elementary's models in your target schema.Max
01/31/2024, 12:21 PMdbt_project.yml then the default behavior should be to not generate the elementary modelsDaniel Pollak
01/31/2024, 12:25 PMmodels:
elementary:
enabled: {{ some_var }}
+schema: "elementary"Max
01/31/2024, 12:32 PMdbt_project.yml so it only runs when defined rather than having to define it to not run on everything else.
Additionally I think the target_schema should be a protected schema and unless explicitly defined, the models should write into <target_schema>_elementary