-
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
Aggregator support prefetch #9679
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: guo-shaoge <[email protected]>
Signed-off-by: guo-shaoge <[email protected]>
Signed-off-by: guo-shaoge <[email protected]>
Signed-off-by: guo-shaoge <[email protected]>
Signed-off-by: guo-shaoge <[email protected]>
Signed-off-by: guo-shaoge <[email protected]>
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Signed-off-by: guo-shaoge <[email protected]>
Signed-off-by: guo-shaoge <[email protected]>
Signed-off-by: guo-shaoge <[email protected]>
Signed-off-by: guo-shaoge <[email protected]>
Signed-off-by: guo-shaoge <[email protected]>
Signed-off-by: guo-shaoge <[email protected]>
Signed-off-by: guo-shaoge <[email protected]>
/retest |
Signed-off-by: guo-shaoge <[email protected]>
Signed-off-by: guo-shaoge <[email protected]>
Signed-off-by: guo-shaoge <[email protected]>
Signed-off-by: guo-shaoge <[email protected]>
This reverts commit 3e30f95.
Signed-off-by: guo-shaoge <[email protected]>
Signed-off-by: guo-shaoge <[email protected]>
Signed-off-by: guo-shaoge <[email protected]>
Signed-off-by: guo-shaoge <[email protected]>
Signed-off-by: guo-shaoge <[email protected]>
28cf3e6
to
948ae94
Compare
Signed-off-by: guo-shaoge <[email protected]>
948ae94
to
a7361e1
Compare
Signed-off-by: guo-shaoge <[email protected]>
Signed-off-by: guo-shaoge <[email protected]>
Signed-off-by: guo-shaoge <[email protected]>
4370d11
to
3301941
Compare
Signed-off-by: guo-shaoge <[email protected]>
Signed-off-by: guo-shaoge <[email protected]>
Signed-off-by: guo-shaoge <[email protected]>
Signed-off-by: guo-shaoge <[email protected]>
3301941
to
cf9036f
Compare
Signed-off-by: guo-shaoge <[email protected]>
cf9036f
to
51a90b5
Compare
Signed-off-by: guo-shaoge <[email protected]>
Signed-off-by: guo-shaoge <[email protected]>
Mapped * value = nullptr; | ||
Mapped * cached_value = nullptr; | ||
bool inserted = false; |
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.
What specific issue does this change address?
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.
emplace_result_holder (std::optional< EmplaceResult >) needs copy assign operator
Signed-off-by: guo-shaoge <[email protected]>
} | ||
else | ||
{ | ||
emplace_result.setMapped(place); |
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.
Is it save to push the fake address?
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.
it's ok. no one use value if agg func is zero. Also check: https://github.com/ClickHouse/ClickHouse/blob/70945668f81a3621685edf4d21728efc1ae4a902/src/Interpreters/Aggregator.cpp#L1020
Signed-off-by: guo-shaoge <[email protected]>
What problem does this PR solve?
Issue Number: close #9680
Problem Summary:
What is changed and how it works?
key32/key64/key128/key256
, and it doesn't affectkey_string/key_serialized
Benchmark
Workloads:
TPCH-50G
Queries:
ENV:
Results (google excel):
NOTE:
1.1 Query duration is in seconds
1.2 baseline: nightly-b16a5f93; rate-opt1: (baseline - opt1)/baseline ; rate-opt2: (baseline - opt2)/baseline
SELECT COUNT(DISTINCT UserID) FROM hits;
https://github.com/ClickHouse/ClickBench/blob/main/mysql/queries.sqlCheck List
Tests
Side effects
Documentation
Release note