Skip to content

Conversation

@romseygeek
Copy link
Contributor

This test checks that interval queries constructed against a field with no indexed
positions will throw exceptions. It uses a randomly-build IntervalsSourceProvider
against a fixed set of fields; however, the random source builder can occasionally
provide a source with a fixed field, meaning that even if the top-level query asks
for a set of intervals over a non-indexed field, the source will delegate to another
field, and no exception will be thrown.

This commit changes the test to always use a simple Match provider.

@romseygeek romseygeek added >test Issues or PRs that are addressing/adding tests :Search/Search Search-related issues that do not fall into other categories v8.0.0 v7.2.0 labels Mar 25, 2019
@romseygeek romseygeek self-assigned this Mar 25, 2019
@romseygeek romseygeek requested review from alpar-t and jpountz March 25, 2019 17:03
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-search

@romseygeek romseygeek merged commit d5015c1 into elastic:master Mar 26, 2019
@romseygeek romseygeek deleted the iqbuilder-testfix branch March 26, 2019 08:11
romseygeek added a commit that referenced this pull request Mar 26, 2019
This test checks that interval queries constructed against a field with no indexed
positions will throw exceptions. It uses a randomly-build IntervalsSourceProvider
against a fixed set of fields; however, the random source builder can occasionally
provide a source with a fixed field, meaning that even if the top-level query asks
for a set of intervals over a non-indexed field, the source will delegate to another
field, and no exception will be thrown.

This commit changes the test to always use a simple Match provider.

Fixes #40436
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Search/Search Search-related issues that do not fall into other categories >test Issues or PRs that are addressing/adding tests v7.2.0 v8.0.0-alpha1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants