Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Epic] state:modified should Actually (only) select the modified resources #9562

Open
1 of 8 tasks
graciegoheen opened this issue Feb 13, 2024 · 2 comments
Open
1 of 8 tasks

Comments

@graciegoheen
Copy link
Contributor

graciegoheen commented Feb 13, 2024

We currently call out a lot of caveats to state comparison in our docs.

There are many scenarios where executing dbt list --select state:modified over or under selects the appropriate resources. This leads to:

  • confusion "why are these models selected as state:modified, I haven't changed them"
  • performance concerns "why am I running 60 models when I only changed 2"
  • potentially bad code sneaking it's way into production "i checked my changes using a Slim CI job, but these models weren't run, now production is broken"

While it's unlikely we can cover ever single edge case here, we should improve state:modified so that it Ideally actually only selects the modified resources.

This epic will track the relevant bugs/enhancements related to state:modified.

Issues

  1. state
    MichelleArk
  2. backport 1.7.latest bug
    MichelleArk
  3. enhancement state state: modified
  4. enhancement state state: modified
  5. enhancement state state: modified
  6. paper_cut state state: modified
  7. Refinement bug state: modified
  8. enhancement help_wanted
@graciegoheen graciegoheen changed the title [Epic] state:modified should Actually only select the modified resources [Epic] state:modified should Actually (only) select the modified resources Feb 13, 2024
@matt-winkler
Copy link
Contributor

What would be lost by disallowing env-aware logic outside the dbt_project.yml?

@patkearns10
Copy link

Lots of examples here: https://discourse.getdbt.com/t/why-are-ci-jobs-state-method-building-more-less-models-nodes-than-expected/7504
An example of env_var logic here , which seems impossible to keep out of state:modified

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants