-
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
executor: init the final recv channel of hash agg with enough chunk #13811
Conversation
e.executed = true | ||
if chk.NumRows() > 0 { // but there are some data left |
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.
If there's remaining data in chk
. The e.isChildReturnEmpty
must be false. Thus we don't need to return it here.
Codecov Report
@@ Coverage Diff @@
## master #13811 +/- ##
=========================================
Coverage 80.233% 80.233%
=========================================
Files 480 480
Lines 120413 120413
=========================================
Hits 96611 96611
Misses 16119 16119
Partials 7683 7683 |
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
/run-all-tests |
@winoros merge failed. |
/run-sqllogic-test |
…oros/tidb into hash-agg-final-inpu-parallel
/run-all-tests |
Should we cherry-pick this PR to 3.0? |
I'm not sure. It's performance problem instead of bug. What's your opinion? |
emm, I also think it's better to pick it to v3.0. |
What problem does this PR solve?
Fix #13806
What is changed and how it works?
Init the channel with enough chunk.
Check List
Tests