Skip to content

Conversation

@not-napoleon
Copy link
Member

Resolves #54655 for post-refactor ValuesSourceConfig. Will need a slightly different solution to backport to 7.7.x

@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-analytics-geo (:Analytics/Aggregations)

@not-napoleon
Copy link
Member Author

@elasticmachine run elasticsearch-ci/2

Copy link
Contributor

@polyfractal polyfractal left a 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 :)

@not-napoleon
Copy link
Member Author

@polyfractal Neither, really. I used an Intellij refactoring to pull the generic TestCase method we use in a lot of places up into the AggregatorTestCase base class, rather than copy it again, but I hadn't noticed that StringStatsTests had different behavior in its implementation. I just pushed a fix that restores the old version of testcase in StringStatsTests with a TODO note to harmonize it with the base class version.

Copy link
Contributor

@polyfractal polyfractal left a 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.

👍

@not-napoleon
Copy link
Member Author

@elasticmachine update branch

@not-napoleon
Copy link
Member Author

@elasticmachine update branch

@not-napoleon
Copy link
Member Author

@elasticmachine update branch

@not-napoleon
Copy link
Member Author

@elasticmachine update branch

elasticmachine and others added 2 commits April 22, 2020 15:31
 Conflicts:
	test/framework/src/main/java/org/elasticsearch/search/aggregations/AggregatorTestCase.java
@not-napoleon
Copy link
Member Author

@elasticmachine run elasticsearch-ci/1

@not-napoleon
Copy link
Member Author

@elasticmachine update branch

@not-napoleon not-napoleon merged commit 754e3ca into elastic:master Apr 24, 2020
@not-napoleon not-napoleon deleted the bugfix-mixed-type-values-scripts branch April 24, 2020 18:45
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.

Value Scripts that change the field type are broken

5 participants