-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
Current behaviour:
dbt-invoke properties --models model_name creates a dedicated model_name.yml file if it does not exist.
If the model is already described in some other .yml file, it causes error on dbt test run as dbt cannot handle duplicates.
Desired behaviour:
- Either check if a model is already documented somewhere in the project, then enrich it where it is (and as it Is)
- Or check if model is already documented somewhere in the project, then crop its description from that file and add it into newly generated model_name.yml
Probably, it should be a toogle option. Some dbt projects stick to "one SQL - one YML" convention and other play by "many SQLs - one schema.yml to rule them all"
Metadata
Metadata
Assignees
Labels
No labels