Skip to content

fix vector grouping expression deferred evaluation to only consider dictionary encoded strings as fixed width#16666

Merged
clintropolis merged 3 commits intoapache:masterfrom
clintropolis:fix-defer-vector-grouping
Jun 27, 2024
Merged

fix vector grouping expression deferred evaluation to only consider dictionary encoded strings as fixed width#16666
clintropolis merged 3 commits intoapache:masterfrom
clintropolis:fix-defer-vector-grouping

Conversation

@clintropolis
Copy link
Copy Markdown
Member

Follow up to #16338, modifies the logic to only consider STRING type columns as dictionary encoded instead of anything with ColumnCapabilities.isDictionaryEncoded set to true. This was a problem because currently VectorColumnSelectorFactory can only make dictionary encoded selectors for STRING typed columns, so any other type that is non-numeric but dictionary encoded cannot currently take advantage of this functionality.

Copy link
Copy Markdown
Contributor

@gianm gianm left a comment

Choose a reason for hiding this comment

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

LGTM

}

if (!capabilities.isNumeric() && !capabilities.isDictionaryEncoded().isTrue()) {
if (!capabilities.isNumeric() && !DeferExpressionDimensions.isDictionaryEncodedScalarString(capabilities)) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I don't see why DeferExpressionDimensions. is needed?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

oh i guess it isn't, for some reason intellij did that for code-completion so i just went with it, will fix

@clintropolis clintropolis merged commit d86f25c into apache:master Jun 27, 2024
@clintropolis clintropolis deleted the fix-defer-vector-grouping branch June 27, 2024 23:19
@kfaraz kfaraz added this to the 31.0.0 milestone Oct 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants