dbt-labs / dbt-labs/dbt

[Feature] Include new state selector for `meta`

Open
#12,022 1 comment 4 reactions 0 assignees View on GitHub
engine:v1 type:feature
Dominant language
Rust
Stars
13.8k
Forks
2.6k
Avg merge
21h 31m
Merged PRs (30d)
56

Description

### Is this your first time submitting a feature request?

- [x] I have read the [expectations for open source contributors](https://docs.getdbt.com/docs/contributing/oss-expectations)
- [x] I have searched the existing issues, and I could not find an existing issue for this feature
- [x] I am requesting a straightforward extension of existing dbt functionality, rather than a Big Idea better suited to a discussion

### Describe the feature

In this document https://docs.getdbt.com/reference/node-selection/methods#state, a `state:modified.configs` selector is included, which is helpful to tweak executions based on state.

However, it is often the case that one has a `meta:` section within the config and this metadata may or may not actually impact the behaviour of the model (e.g. I may have a `owner` of the model in the `meta` section and if the owner of the model changes I don't want to reprocess it as the behaviour of the model did not change).

Because of this, it would be helpful to have a `state:modified.configs.meta` or simply `state:modified.meta`, which would include/exclude all models which had their metadata changed.

### Describe alternatives you've considered

_No response_

### Who will this benefit?

Everyone using the `meta` section combined with the stateful executions.

### Are you interested in contributing this feature?

_No response_

### Anything else?

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.