-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
feature/favor-state-node #5859
feature/favor-state-node #5859
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for going through the trouble of a rebase / new branch @josephberni !
def _add_favor_state_argument(*subparsers): | ||
for sub in subparsers: | ||
sub.add_optional_argument_inverse( | ||
"--favor-state", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@iknox-fa Do you have a sense of how we want to handle new flag additions, while we're migrating from old to new CLI? Since the new CLI is checked into main
, we could ask folks to add it here — but we'll probably also need to check for parity again before formally cutting over in a few months
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will squash all commits once all comments have been resolved :) |
Why are you overriding '_get_deferred_manifest' and 'defer_to_manifest' in dbt.task.run? Those methods were in the compile task because the selectors apply to a lot of commands besides run. |
7b95d99
to
5785a81
Compare
5785a81
to
a3726d5
Compare
I've removed these functions from the dbt.task.run file as they exist in the compile file. Thanks for the spot. |
Do I need to do anything on this @jtcohen6, appreciate Coalesce likely has you all tied up but want to make sure you are not waiting on me? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
Closing and re-opening to trigger github actions which seem to have stalled. |
Co-authored-by: Stu Kilgore <stuart.kilgore@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, I didn't catch these. Since introducing python models the compiled_sql
attribute on nodes has been renamed to compiled_code
!
Co-authored-by: Stu Kilgore <stuart.kilgore@gmail.com>
Co-authored-by: Stu Kilgore <stuart.kilgore@gmail.com>
Co-authored-by: Stu Kilgore <stuart.kilgore@gmail.com>
Thanks @stu-k ! Once the tests pass I will squash the commits |
@josephberni no problem, thank you for taking this on! |
assert len(results) == 2 | ||
|
||
# because the seed exists in other schema, we should defer it | ||
assert self.other_schema not in results[0].node.compiled_code |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like this is the line causing the tests to fail 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was creating the seed in the other_schema and checking it wasn't there, resolved this. If all OK will squash commits.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work! Thank you for putting this together!
resolves #5016
Description
Add --favor-state option which enables --defer to favor using --state node even if node exists in current target.
This optionally removes the below second --defer criterion when using the --favor-state flag.
This branch has been created and rebased against an older branch so that the owner of the branch has signed the CLA.
Checklist
changie new
to create a changelog entry