-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Aggregation support for Value Scripts that change types #54830
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
Aggregation support for Value Scripts that change types #54830
Conversation
|
Pinging @elastic/es-analytics-geo (:Analytics/Aggregations) |
|
@elasticmachine run elasticsearch-ci/2 |
polyfractal
left a comment
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.
Changes LGTM, but the test failure also looks real (NPE in stringstats "no matching docs" test), so it feels like we might be missing an edge-case here. Or maybe just a broken test that is being exposed due to the change :)
|
@polyfractal Neither, really. I used an Intellij refactoring to pull the generic |
polyfractal
left a comment
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.
Ah yeah, we have a few of these hanging around, particularly older aggs. I just converted Terms over to use the base class with a similar pattern, and it requires a bit of reworking some of the tests.
👍
|
@elasticmachine update branch |
|
@elasticmachine update branch |
|
@elasticmachine update branch |
|
@elasticmachine update branch |
Conflicts: test/framework/src/main/java/org/elasticsearch/search/aggregations/AggregatorTestCase.java
|
@elasticmachine run elasticsearch-ci/1 |
|
@elasticmachine update branch |
Resolves #54655 for post-refactor
ValuesSourceConfig. Will need a slightly different solution to backport to 7.7.x