-
Notifications
You must be signed in to change notification settings - Fork 66
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
Add support for local cache in hybrid query #663
Add support for local cache in hybrid query #663
Conversation
60229e7
to
29dfb58
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #663 +/- ##
============================================
- Coverage 84.19% 84.04% -0.15%
- Complexity 743 744 +1
============================================
Files 59 59
Lines 2309 2313 +4
Branches 370 374 +4
============================================
Hits 1944 1944
Misses 214 214
- Partials 151 155 +4 ☔ View full report in Codecov by Sentry. |
dbf2af4
to
32079ec
Compare
Signed-off-by: Martin Gaievski <[email protected]>
32079ec
to
7259575
Compare
BWC will keep failing unless all dependent repos are switched to 2.14 snapshot version, in particular: knn, ml-commons, common-utils. Also this PR should be merged for neural-search repo: #653 |
cc6a6b2
into
opensearch-project:main
Signed-off-by: Martin Gaievski <[email protected]> (cherry picked from commit cc6a6b2)
Signed-off-by: Martin Gaievski <[email protected]> (cherry picked from commit cc6a6b2) Co-authored-by: Martin Gaievski <[email protected]>
Signed-off-by: Martin Gaievski <[email protected]> (cherry picked from commit cc6a6b2)
Signed-off-by: Martin Gaievski <[email protected]> (cherry picked from commit cc6a6b2) Co-authored-by: Martin Gaievski <[email protected]>
Description
In this PR we're relaxing validation of fetch and query results for case when request cache is enabled and index has 1 shard. Today's code throws exception in such scenario, this is because cached results of fetch and query are different in size.
In addition to new integ tests I've run few scenarios manually. Below is example that is similar to one reported in original GH issue:
Create index with
keyword
andinteger
fields, ingest following 8 documents:Query 1
Results after first execution:
Results of second execution of same query, previously this request result in 500 code error response
Query 2, difference is in sub-queries of hybrid query:
Result of first execution
Results of second execution, before the fix system returns error response with code 500
Issues Resolved
#606
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.