-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Reject invalid reverse_nested aggs
#137047
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
Reject invalid reverse_nested aggs
#137047
Conversation
|
Pinging @elastic/es-analytical-engine (Team:Analytics) |
|
Hi @MattAlp, I've created a changelog YAML for you. |
...t/java/org/elasticsearch/search/aggregations/bucket/nested/ReverseNestedAggregatorTests.java
Show resolved
Hide resolved
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.
Looks good to me. @martijnvg should also look because he knows the nested stuff better than anyone.
| - match: { aggregations.courses.highpass_filter.unnest.department.buckets.1.doc_count: 1 } | ||
| --- | ||
| "Illegal reverse nested aggregation to a child nested object": | ||
| - do: |
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.
This'll also want a capability. Those live in SearchCapabilities. And, of course, it's not an enum.
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.
It has been a long time since I looked at this code. However so far I can this LGTM.
💔 Backport failedThe backport operation could not be completed due to the following error: You can use sqren/backport to manually backport by running |
💚 All backports created successfully
Questions ?Please refer to the Backport tool documentation |
(cherry picked from commit b46f245)
(cherry picked from commit b46f245)
(cherry picked from commit b46f245)
💚 All backports created successfully
Questions ?Please refer to the Backport tool documentation |
Addresses #131232 by checking the path provided for a
reverse_nestedagg against the parent's aggregation path & throwing anIllegalArgumentExceptionif appropriate.