-
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: fix the case that projection prunes all columns | tidb-test=pr/2367 #54650
Conversation
/retest |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #54650 +/- ##
=================================================
- Coverage 72.8656% 56.5252% -16.3405%
=================================================
Files 1551 1674 +123
Lines 436701 618110 +181409
=================================================
+ Hits 318205 349388 +31183
- Misses 98995 245337 +146342
- Partials 19501 23385 +3884
Flags with carried forward coverage won't be shown. Click here to find out more.
|
/retest |
2 similar comments
/retest |
/retest |
" │ └─Selection 8000.00 mpp[tiflash] gt(mul(test.t1.c1, test.t1.c1), plus(test.t1.c2, 10))", | ||
" │ └─TableFullScan 10000.00 mpp[tiflash] table:ta pushed down filter:empty, keep order:false, stats:pseudo", | ||
" └─TableFullScan(Probe) 10000.00 mpp[tiflash] table:tb keep order:false, stats:pseudo" | ||
" └─Projection 80000000.00 mpp[tiflash] Column#8", |
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.
Why is there an extra projection here?
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.
The join of the tiflash side doesn't support inline projection in itself. So we need to add the extra proj when the inline projection happens
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.
And before this pr, tiflash side doesn't prune any column for the join. It's actually optimizing the join's output.
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
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: elsa0520, qw4990 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/retest |
1 similar comment
/retest |
What problem does this PR solve?
Issue Number: close #54648
Problem Summary:
What changed and how does it work?
After #54609, limit and projection may still output no columns so its parent executor will treat its output as empty since there is no column as output.
Check List
Tests
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.