-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
execuor, plan: check b.err in buildUpdate after doOptimize #7204
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.
lgtm
plan/logical_plan_builder.go
Outdated
@@ -2066,6 +2066,9 @@ func (b *planBuilder) buildUpdate(update *ast.UpdateStmt) Plan { | |||
}.init(b.ctx) | |||
updt.SetSchema(p.Schema()) | |||
updt.SelectPlan, b.err = doOptimize(b.optFlag, p) | |||
if b.err != nil { | |||
return nil |
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.
do we need b.err = errors.Trace(b.err)
before return?
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
PTAL @winoros |
/run-all-tests |
/run-unit-test |
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
What have you changed? (mandatory)
check b.err in buildUpdate after doOptimize
What is the type of the changes? (mandatory)
How has this PR been tested? (mandatory)
integration test
Does this PR affect documentation (docs/docs-cn) update? (mandatory)
no
Does this PR affect tidb-ansible update? (mandatory)
no
Does this PR need to be added to the release notes? (mandatory)
no
Refer to a related PR or issue link (optional)
#7114
Benchmark result if necessary (optional)
Add a few positive/negative examples (optional)