-
Notifications
You must be signed in to change notification settings - Fork 25.6k
value type, unmapped fields, scripting, missing param tests for stats agg #53768
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
value type, unmapped fields, scripting, missing param tests for stats agg #53768
Conversation
Adds tests for supported ValuesSourceTypes, unmapped fields, scripting, and the missing param. The tests for unmapped fields and scripting are migrated from the StatsIT integration test
|
Pinging @elastic/es-analytics-geo (:Analytics/Aggregations) |
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.
Left a comment about AbstractNumericTestCase but otherwise LGTM! <3
| assertThat(Double.isNaN(stats.getAvg()), is(true)); | ||
| } | ||
|
|
||
| /** this test was moved to {@link StatsAggregatorTests#testUnmapped()} */ |
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.
Hmm, how about making these non-abstract in AbstractNumericTestCase, that way we can just delete them entirely? I don't think we'll be extending AbstractNumericTestCase anymore in the future and it will eventually go away, so probably ok to have concrete "no-op" implementations to make the transition time cleaner.
WDYT?
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.
I like it 👍
Adds tests for supported ValuesSourceTypes, unmapped fields, scripting, and the missing param. The tests for unmapped fields and scripting are migrated from the StatsIT integration test
Adds tests for supported ValuesSourceTypes, unmapped fields, scripting, and the missing param. The tests for unmapped fields and scripting are migrated from the StatsIT integration test
Adds tests for supported ValuesSourceTypes, unmapped fields, scripting,
and the missing param. The tests for unmapped fields and scripting are
migrated from the StatsIT integration test