Skip to content

allow optimization of single multi-value column input expr with repeated identifier#9425

Merged
gianm merged 2 commits intoapache:masterfrom
clintropolis:single-string-multi-val-expr-fix
Mar 6, 2020
Merged

allow optimization of single multi-value column input expr with repeated identifier#9425
gianm merged 2 commits intoapache:masterfrom
clintropolis:single-string-multi-val-expr-fix

Conversation

@clintropolis
Copy link
Copy Markdown
Member

@clintropolis clintropolis commented Feb 27, 2020

Fixes #9414.

Description

An oversight from #8957, I forgot to remove this check, which was preventing single multi-valued column input expressions from using an optimized single column expression selector.


This PR has:

  • been self-reviewed.
  • added unit tests or modified existing tests to cover new code paths.

Key changed/added classes in this PR
  • ExpressionSelectors

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.

Can you think of a way to add a test? (The results don't change, we were just missing a performance optimization. We don't have a perf test framework yet, but even without one, any ideas?)

@clintropolis clintropolis force-pushed the single-string-multi-val-expr-fix branch from 6db5d15 to 9453c5f Compare February 27, 2020 01:58
@clintropolis
Copy link
Copy Markdown
Member Author

Can you think of a way to add a test? (The results don't change, we were just missing a performance optimization. We don't have a perf test framework yet, but even without one, any ideas?)

It is pretty ugly, but I added a test to confirm that SingleStringInputDimensionSelector is chosen over MultiValueExpressionDimensionSelector for selectors with capabilities that are compatible with the optimization.

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.

👍

@gianm gianm merged commit a677664 into apache:master Mar 6, 2020
@clintropolis clintropolis deleted the single-string-multi-val-expr-fix branch March 6, 2020 21:02
@jihoonson jihoonson added this to the 0.18.0 milestone Mar 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SQL: severe performance degradation if multi-valued dimension gets combined with a LOOKUP and NVL function

3 participants