Skip to content

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

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

Merged
merged 2 commits into from
Mar 31, 2020

Conversation

polyfractal
Copy link
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.

polyfractal 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
Collaborator

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

@polyfractal
Copy link
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