Skip to content
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

[Backport 2.x] Remove ApproximateIndexOrDocValuesQuery #16291

Merged
merged 1 commit into from
Oct 14, 2024

Conversation

opensearch-trigger-bot[bot]
Copy link
Contributor

Backport 53c9ddf from #16273.

Looking into the query approximation framework, I realized that we don't
actually need ApproximateIndexOrDocValuesQuery. We already have
ApproximateScoreQuery that is able to choose between the approximate
query and the original query.

Assuming the range query is over an indexed field, it is (potentially)
possible to approximate. If there are doc values, then the original
query will be an IndexOrDocValuesQuery. Otherwise, it will just be a
PointRangeQuery.  Either way, we can wrap the original query into a
generic ApproximateScoreQuery along with the approximate query. The
approximation logic doesn't need to be specialized to the
IndexOrDocValue case.

---------

Signed-off-by: Michael Froh <froh@amazon.com>
(cherry picked from commit 53c9ddf)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Copy link
Contributor

❌ Gradle check result for bd2805b: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

Copy link
Contributor

❌ Gradle check result for bd2805b: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

Copy link
Contributor

✅ Gradle check result for bd2805b: SUCCESS

Copy link

codecov bot commented Oct 14, 2024

Codecov Report

Attention: Patch coverage is 15.78947% with 16 lines in your changes missing coverage. Please review.

Project coverage is 71.72%. Comparing base (89be8a3) to head (bd2805b).
Report is 10 commits behind head on 2.x.

Files with missing lines Patch % Lines
...a/org/opensearch/index/mapper/DateFieldMapper.java 11.11% 12 Missing and 4 partials ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##                2.x   #16291      +/-   ##
============================================
- Coverage     71.84%   71.72%   -0.12%     
+ Complexity    65102    65082      -20     
============================================
  Files          5302     5301       -1     
  Lines        303865   303850      -15     
  Branches      44192    44191       -1     
============================================
- Hits         218301   217931     -370     
- Misses        67384    67793     +409     
+ Partials      18180    18126      -54     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@dbwiddis dbwiddis merged commit 9950cba into 2.x Oct 14, 2024
61 of 62 checks passed
@github-actions github-actions bot deleted the backport/backport-16273-to-2.x branch October 14, 2024 07:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants