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

Fix LowCardinalityDictionaryWork in GroupByHash #11829

Conversation

pettyjamesm
Copy link
Member

Description

Fixes an issue where aggregations over DictionaryBlock with low cardinality could emit non-sequential groupId values, which would cause incorrect results in DistinctLimitOperator and MarkDistinctHash.

Is this change a fix, improvement, new feature, refactoring, or other?

Fix for incorrect query results

Is this a change to the core query engine, a connector, client library, or the SPI interfaces? (be specific)

Core engine

How would you describe this change to a non-technical end user or system administrator?

Fixes a correctness bug

Related issues, pull requests, and links

Documentation

( ) No documentation is needed.
( ) Sufficient documentation is included in this PR.
( ) Documentation PR is available with #prnumber.
( ) Documentation issue #issuenumber is filed, and can be handled later.

Release notes

( ) No release notes entries required.
( ) Release notes entries required with the following suggested text:

# Section
* Fix some things. ({issue}`issuenumber`)

@cla-bot cla-bot bot added the cla-signed label Apr 6, 2022
@pettyjamesm pettyjamesm force-pushed the fix-low-cardinality-dictionary-groupby-hash branch from bc26e56 to 9f2d44b Compare April 6, 2022 16:27
@pettyjamesm pettyjamesm force-pushed the fix-low-cardinality-dictionary-groupby-hash branch from 9f2d44b to f73d77f Compare April 6, 2022 17:25
Copy link
Member

@sopel39 sopel39 left a comment

Choose a reason for hiding this comment

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

lgtm % test is needed % benchmark run

@pettyjamesm pettyjamesm force-pushed the fix-low-cardinality-dictionary-groupby-hash branch from f73d77f to f561746 Compare April 6, 2022 21:20
@pettyjamesm pettyjamesm marked this pull request as ready for review April 6, 2022 21:28
@pettyjamesm
Copy link
Member Author

Closing in favor of #11837

@pettyjamesm pettyjamesm closed this Apr 7, 2022
@pettyjamesm pettyjamesm deleted the fix-low-cardinality-dictionary-groupby-hash branch April 7, 2022 18:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

Query Fails when distinct and limit operators are present
3 participants