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 vector grouping expression deferred evaluation to only consider dictionary encoded strings as fixed width #16666

Merged
merged 3 commits into from
Jun 27, 2024

Conversation

clintropolis
Copy link
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
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

@@ -71,7 +71,7 @@ public boolean useDeferredGroupBySelector(
return false;
}

if (!capabilities.isNumeric() && !capabilities.isDictionaryEncoded().isTrue()) {
if (!capabilities.isNumeric() && !DeferExpressionDimensions.isDictionaryEncodedScalarString(capabilities)) {
Copy link
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
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
88 checks passed
@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