Skip to content

[CT-2949] [Feature] Graph operator for selecting parents / children, but not specified models #8340

@jaklan

Description

@jaklan

Is this your first time submitting a feature request?

  • I have read the expectations for open source contributors
  • I have searched the existing issues, and I could not find an existing issue for this feature
  • I am requesting a straightforward extension of existing dbt functionality, rather than a Big Idea better suited to a discussion

Describe the feature

Hi, I would like to figure out a local development flow utilising the new dbt feature - dbt clone. To mimic the behaviour of --defer, I need to run the clone command only for upstream dependencies of modified models to create views in my personal schemas in dev database (we overwrite the generate_schema_name macro for that).

To achieve it today, I have to run:

dbt clone --select +model_a +model_b --exclude model_a model_b --state path/to/artifacts

or

dbt clone --select +state:modified --exclude state:modified --state path/to/artifacts

which is pretty inconvenient. It would be much easier if we introduce a new graph operator not to include specified models, so we could run e.g.:

dbt clone --select ++model_a ++model_b --state path/to/artifacts

or

dbt clone --select ++state:modified --state path/to/artifacts

Who will this benefit?

dbt users using dbt clone (but not only)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions