-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
planner/core: push selection operator to mpp task #22343
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
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
/merge |
/run-all-tests |
if mppTask, _ := tasks[0].(*mppTask); mppTask != nil { // always push to mpp task. | ||
sc := sel.ctx.GetSessionVars().StmtCtx | ||
if expression.CanExprsPushDown(sc, sel.Conditions, sel.ctx.GetClient(), kv.TiFlash) { | ||
return attachPlan2Task(sel, mppTask.copy()) |
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.
add cost?
What problem does this PR solve?
Problem Summary:
In TiDB, selection can not appear above a operator except table scan. But in Mpp mode, that's not the case any more.
What is changed and how it works?
What's Changed:
In attack 2 task phase, selection can be attached to MPP part
Check List
Tests
Side effects
None
Release note