Fix accuracy of uniqTheta when using UInt8 aggregation keys in parallel#94095
Merged
azat merged 2 commits intoClickHouse:masterfrom Jan 14, 2026
Merged
Fix accuracy of uniqTheta when using UInt8 aggregation keys in parallel#94095azat merged 2 commits intoClickHouse:masterfrom
azat merged 2 commits intoClickHouse:masterfrom
Conversation
Contributor
Avogar
approved these changes
Jan 13, 2026
125136f to
f3afd15
Compare
azat
commented
Jan 14, 2026
| 17 10 10 100 100 610 610 766 | ||
| 52 10 10 100 100 608 608 766 | ||
| 5 10 10 100 100 608 608 765 | ||
| 5 10 10 100 100 609 609 765 |
Member
Author
There was a problem hiding this comment.
Note, this is more accurate value, it matches with uniqExact
This is the correct value, since uniqExact gives the same (last values
are for uniqExact):
5 10 10 100 100 609 609 10 10 100 100 609 609 765
5310fa8 to
0f1d705
Compare
This was referenced Jan 14, 2026
robot-clickhouse-ci-2
added a commit
that referenced
this pull request
Jan 14, 2026
Cherry pick #94095 to 25.12: Fix accuracy of uniqTheta when using UInt8 aggregation keys in parallel
robot-clickhouse
added a commit
that referenced
this pull request
Jan 14, 2026
…aggregation keys in parallel
robot-ch-test-poll2
added a commit
that referenced
this pull request
Jan 14, 2026
Cherry pick #94095 to 25.8: Fix accuracy of uniqTheta when using UInt8 aggregation keys in parallel
robot-clickhouse
added a commit
that referenced
this pull request
Jan 14, 2026
…ggregation keys in parallel
robot-ch-test-poll2
added a commit
that referenced
this pull request
Jan 14, 2026
Cherry pick #94095 to 25.10: Fix accuracy of uniqTheta when using UInt8 aggregation keys in parallel
robot-clickhouse
added a commit
that referenced
this pull request
Jan 14, 2026
…aggregation keys in parallel
robot-ch-test-poll2
added a commit
that referenced
this pull request
Jan 14, 2026
Cherry pick #94095 to 25.11: Fix accuracy of uniqTheta when using UInt8 aggregation keys in parallel
robot-clickhouse
added a commit
that referenced
this pull request
Jan 14, 2026
…aggregation keys in parallel
clickhouse-gh bot
added a commit
that referenced
this pull request
Jan 14, 2026
Backport #94095 to 25.10: Fix accuracy of uniqTheta when using UInt8 aggregation keys in parallel
azat
added a commit
that referenced
this pull request
Jan 14, 2026
Backport #94095 to 25.11: Fix accuracy of uniqTheta when using UInt8 aggregation keys in parallel
azat
added a commit
that referenced
this pull request
Jan 14, 2026
Backport #94095 to 25.12: Fix accuracy of uniqTheta when using UInt8 aggregation keys in parallel
clickhouse-gh bot
added a commit
that referenced
this pull request
Jan 14, 2026
Backport #94095 to 25.8: Fix accuracy of uniqTheta when using UInt8 aggregation keys in parallel
Contributor
|
This pr also fixed this simpler example: SELECT number % 2 AS even, uniqTheta(number) FROM numbers(10) GROUP BY even;After this pr: Before: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Fix accuracy of
uniqThetawhen using UInt8 aggregation keys in parallel (max_threads> 1 - default)Test
Before
After
Fixes: #45292