Skip to content

Fix LowCardinalityDictionaryWork in GroupByHash#11837

Merged
sopel39 merged 1 commit intotrinodb:masterfrom
skrzypo987:skrzypo/065-fix-low-cardinality-dictionary-work
Apr 7, 2022
Merged

Fix LowCardinalityDictionaryWork in GroupByHash#11837
sopel39 merged 1 commit intotrinodb:masterfrom
skrzypo987:skrzypo/065-fix-low-cardinality-dictionary-work

Conversation

@skrzypo987
Copy link
Copy Markdown
Member

@skrzypo987 skrzypo987 commented Apr 7, 2022

Description

This is a fork of #11829 with added test

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

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

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

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`)

Fixes #11776

@cla-bot cla-bot bot added the cla-signed label Apr 7, 2022
Copy link
Copy Markdown
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 % comments

@skrzypo987 skrzypo987 force-pushed the skrzypo/065-fix-low-cardinality-dictionary-work branch from a35831f to f98a127 Compare April 7, 2022 11:13
@skrzypo987
Copy link
Copy Markdown
Member Author

Comments addressed

Group ids assigned by GroupByHash#getGroupIds should be incremental
as this is required by DistinctLimitOperator and MarkDistinctOperator to
correctly recognize first occurence of unique row.
This commit makes GetLowCardinalityDictionaryGroupIdsWork
comply with this contract.
@sopel39 sopel39 force-pushed the skrzypo/065-fix-low-cardinality-dictionary-work branch from f98a127 to d778a63 Compare April 7, 2022 20:33
@sopel39 sopel39 merged commit 5f6ccea into trinodb:master Apr 7, 2022
@sopel39 sopel39 mentioned this pull request Apr 7, 2022
@github-actions github-actions bot added this to the 376 milestone Apr 7, 2022
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