-
Notifications
You must be signed in to change notification settings - Fork 411
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
Parallelize the converting hash table to two level process after finishing hash agg build #8957
Conversation
Signed-off-by: gengliqi <[email protected]>
Signed-off-by: gengliqi <[email protected]>
Signed-off-by: gengliqi <[email protected]>
/build |
/run-all-tests |
Signed-off-by: gengliqi <[email protected]>
Signed-off-by: gengliqi <[email protected]>
/run-all-tests |
dbms/src/Interpreters/Aggregator.cpp
Outdated
@@ -2455,14 +2460,55 @@ Block MergingBuckets::getData(size_t concurrency_index) | |||
{ | |||
assert(concurrency_index < concurrency); | |||
|
|||
if (unlikely(data.empty())) | |||
if unlikely (data.empty()) |
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 removing the ()
outside of unlikely? 😂
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.
Just for simplicity😂
Signed-off-by: gengliqi <[email protected]>
Signed-off-by: gengliqi <[email protected]>
3a1dab7
to
6dbbbc3
Compare
Signed-off-by: gengliqi <[email protected]>
/run-all-tests |
/run-all-tests |
@@ -77,6 +84,39 @@ void PhysicalAggregationBuild::buildPipelineExecGroupImpl( | |||
EventPtr PhysicalAggregationBuild::doSinkComplete(PipelineExecutorContext & exec_context) | |||
{ | |||
assert(aggregate_context); | |||
|
|||
SCOPE_EXIT({ aggregate_context.reset(); }); | |||
if (!aggregate_context->hasSpilledData()) |
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.
This check should at least moved to after aggregate_context->getAggSpillContext()->finishSpillableStage();
How about move the whole code block after check AggregateFinalSpillEvent
?
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.
Done.
Signed-off-by: gengliqi <[email protected]>
/run-all-tests |
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: SeaRise, windtalker 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 |
[LGTM Timeline notifier]Timeline:
|
/run-integration-test |
What problem does this PR solve?
Issue Number: close #8956
Problem Summary:
See #8956.
What is changed and how it works?
Check List
Tests
Side effects
Documentation
Release note