Skip to content

ESQL: Simplify CombineProjections#117882

Merged
alex-spies merged 5 commits intoelastic:mainfrom
alex-spies:tiny-refactor-combineprojs
Dec 3, 2024
Merged

ESQL: Simplify CombineProjections#117882
alex-spies merged 5 commits intoelastic:mainfrom
alex-spies:tiny-refactor-combineprojs

Conversation

@alex-spies
Copy link
Copy Markdown
Contributor

#114317 needed to amend the CombineProjections logical optimizer rule to account for the CATEGORIZE function.

I believe this can be a tiny bit simplified, more specifically the method combineUpperGroupingsAndLowerProjections - c.f. #114317 (comment).

combineUpperGroupingsAndLowerProjections can be made a bit simpler.
@alex-spies alex-spies requested a review from ivancea December 3, 2024 10:25
@elasticsearchmachine elasticsearchmachine added the Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) label Dec 3, 2024
@elasticsearchmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-analytical-engine (Team:Analytics)

@alex-spies alex-spies requested a review from astefan December 3, 2024 11:20
Copy link
Copy Markdown
Contributor

@astefan astefan left a comment

Choose a reason for hiding this comment

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

LGTM

@alex-spies alex-spies added the auto-backport Automatically create backport pull requests when merged label Dec 3, 2024
@alex-spies alex-spies merged commit cca7051 into elastic:main Dec 3, 2024
@alex-spies alex-spies deleted the tiny-refactor-combineprojs branch December 3, 2024 13:28
alex-spies added a commit to alex-spies/elasticsearch that referenced this pull request Dec 3, 2024
Make combineUpperGroupingsAndLowerProjections a bit simpler.
Also slightly improve a test and add comments to provide more context.
@elasticsearchmachine
Copy link
Copy Markdown
Collaborator

💚 Backport successful

Status Branch Result
8.x

elasticsearchmachine pushed a commit that referenced this pull request Dec 3, 2024
Make combineUpperGroupingsAndLowerProjections a bit simpler.
Also slightly improve a test and add comments to provide more context.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Analytics/ES|QL AKA ESQL auto-backport Automatically create backport pull requests when merged >refactoring Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) v8.18.0 v9.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants