-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
[CT-2643] [Regression] state:modified selection method not behaving correctly #7790
Comments
@serene-capybara I know what's happened here: dbt now (over)writes dbt-core/core/dbt/cli/requires.py Lines 249 to 250 in 8e1c4ec
This is more consistent across the board, in terms of when the manifest becomes available to dbt and to end users. But it also means that, during the subsequent run (step 4) in the reproduction case, it overwrites I'd recommend updating your workflow in one of the following ways (ranked in my personal order of preference):
I'm going to close this in the meantime, as not a bug/regression, even if it means that this specific workflow will need to be modified while upgrading from v1.4 → v1.5. |
@jtcohen6 Thanks for the reply. I thought this was a pretty run-of-the-mill workflow, (Steps 3 and 4, anyway). Is there a more typical development / Slim CI pattern for selecting modified nodes that does not require this temp folder workaround? More to the point - is there a practical advantage to updating the model checksum during parse, as opposed to later in the pipeline? Anyway, I appreciate the feedback; this is enough to fix my CI, and I suppose I can just make a script for development. However, I think this change should be captured in one of these doc pages/sections: |
Fair point on updating docs! |
I must admit that I was caught by surprise with this change. Referring to it as 'not a bug/regression' might be a bit of a stretch, considering its impact on state selectors for existing setups. |
@voroninman Heard! We had some more conversation about this, in follow-ups to the I don't foresee us changing this behavior, but we could do a better job of avoiding unpleasant surprises. What do you think about a warning message whenever a user has set their The one case where it feels legitimate to have |
A warning would suffice. If I start seeing something like "WARNING: The state selector won't match anything when |
Is this a regression in a recent version of dbt-core?
Current Behavior
dbt commands selecting modified models fails to detect any nodes.
Expected/Previous Behavior
Modified nodes should be detected when selecting on modified state.
Steps To Reproduce
dbt clean && dbt deps
dbt [run|build|compile] --target-path target
dbt ls --select state:modified --state target
Relevant log output
Which database adapter are you using with dbt?
postgres
Additional Context
No response
The text was updated successfully, but these errors were encountered: