Skip to content
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

Merged
merged 7 commits into from
Dec 6, 2019

Conversation

winoros
Copy link
Member

@winoros winoros commented Nov 29, 2019

What problem does this PR solve?

Fix #13806

What is changed and how it works?

Init the channel with enough chunk.

Check List

Tests

  • Exsiting tests

e.executed = true
if chk.NumRows() > 0 { // but there are some data left
Copy link
Member Author

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.

executor/aggregate.go Outdated Show resolved Hide resolved
@SunRunAway SunRunAway added this to the v3.0.7 milestone Dec 2, 2019
@codecov
Copy link

codecov bot commented Dec 4, 2019

Codecov Report

Merging #13811 into master will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##            master    #13811   +/-   ##
=========================================
  Coverage   80.233%   80.233%           
=========================================
  Files          480       480           
  Lines       120413    120413           
=========================================
  Hits         96611     96611           
  Misses       16119     16119           
  Partials      7683      7683

Copy link
Contributor

@XuHuaiyu XuHuaiyu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

qw4990
qw4990 previously approved these changes Dec 6, 2019
Copy link
Contributor

@qw4990 qw4990 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@qw4990 qw4990 added status/can-merge Indicates a PR has been approved by a committer. status/LGT2 Indicates that a PR has LGTM 2. labels Dec 6, 2019
@sre-bot
Copy link
Contributor

sre-bot commented Dec 6, 2019

/run-all-tests

@sre-bot
Copy link
Contributor

sre-bot commented Dec 6, 2019

@winoros merge failed.

@winoros
Copy link
Member Author

winoros commented Dec 6, 2019

/run-sqllogic-test

@winoros
Copy link
Member Author

winoros commented Dec 6, 2019

/run-all-tests

@winoros winoros merged commit 98519eb into pingcap:master Dec 6, 2019
@winoros winoros deleted the hash-agg-final-inpu-parallel branch December 6, 2019 09:06
@SunRunAway
Copy link
Contributor

Should we cherry-pick this PR to 3.0?

@winoros
Copy link
Member Author

winoros commented Dec 6, 2019

I'm not sure. It's performance problem instead of bug. What's your opinion?

@qw4990
Copy link
Contributor

qw4990 commented Dec 6, 2019

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.

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sig/execution SIG execution status/can-merge Indicates a PR has been approved by a committer. status/LGT2 Indicates that a PR has LGTM 2. type/performance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

When sending data to HashAgg's father node, the execution logic is not paralleled
5 participants