Skip to content

Modify existing description of the model, if exists #11

@Gregory108

Description

@Gregory108

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:

  1. Either check if a model is already documented somewhere in the project, then enrich it where it is (and as it Is)
  2. 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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions