Skip to content

[7.x] Comprehensively test supported/unsupported field type:agg combinations#54451

Merged
polyfractal merged 2 commits intoelastic:7.xfrom
polyfractal:vs_refactor_tests_7x_backport
Mar 31, 2020
Merged

[7.x] Comprehensively test supported/unsupported field type:agg combinations#54451
polyfractal merged 2 commits intoelastic:7.xfrom
polyfractal:vs_refactor_tests_7x_backport

Conversation

@polyfractal
Copy link
Copy Markdown
Contributor

This is a backport of #52493 and #52723 to the 7.x branch, in preparation of the VS refactor backport.

Shouldn't really need a review, merge conflicts were minimal, but did want a CI run.

Zachary Tong and others added 2 commits March 30, 2020 13:17
elastic#52493)

This adds a test to AggregatorTestCase that allows us to programmatically
verify that an aggregator supports or does not support a particular
field type.  It fetches the list of registered field type parsers,
creates a MappedFieldType from the parser and then attempts to run
a basic agg against the field.

A supplied list of supported VSTypes are then compared against the
output (success or exception) and suceeds or fails the test accordingly.

Co-Authored-By: Mark Tozzi <mark.tozzi@gmail.com>
* Skip fields that are not aggregatable
Lucene's `newSearcher()` can generate readers like ParallelCompositeReader
which we can't use.  We need to instead use our helper `newIndexSearcher`
@polyfractal polyfractal added >test Issues or PRs that are addressing/adding tests :Analytics/Aggregations Aggregations backport v7.8.0 labels Mar 30, 2020
@elasticmachine
Copy link
Copy Markdown
Collaborator

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

@polyfractal
Copy link
Copy Markdown
Contributor Author

@elasticmachine run elasticsearch-ci/default-distro

@polyfractal polyfractal merged commit c9db2de into elastic:7.x Mar 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Analytics/Aggregations Aggregations backport >test Issues or PRs that are addressing/adding tests v7.8.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants