-
Notifications
You must be signed in to change notification settings - Fork 25k
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
ESQL: Fix replacement of nested expressions in aggs with multiple parameters #104718
ESQL: Fix replacement of nested expressions in aggs with multiple parameters #104718
Conversation
Pinging @elastic/es-analytical-engine (Team:Analytics) |
Hi @luigidellaquila, I've created a changelog YAML for you. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lgtm.
Optionally, a count_distinct()
test would be also welcome, as the only other agg with a parameter, but can stay as is too.
@elasticmachine run elasticsearch-ci/part-3 |
@bpintea good point, we have tests for count_distinct(), but not with nested expressions. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Fixes #104706
Fixing a small regression after #104387
The rule that extracts nested expressions from aggs did not take extra params into consideration, resulting in an IndexOutOfBoundsException for functions like
percentile()
that have more than one input parameter.