backport sorted BytesRef to TermInSet #17714 to 2.x#17916
backport sorted BytesRef to TermInSet #17714 to 2.x#17916jainankitk merged 3 commits intoopensearch-project:2.xfrom
Conversation
…#17714) * pass in order terms as sorted to TermInSetQuery() Signed-off-by: Mikhail Khludnev <mkhl@apache.org> * slightly more elegant solution Signed-off-by: Mikhail Khludnev <mkhl@apache.org> * Attempting mocking TermInSetQ constructor. Signed-off-by: Mikhail Khludnev <mkhl@apache.org> * Handle ids as well. Signed-off-by: Mikhail Khludnev <mkhl@apache.org> * forbidden api Signed-off-by: Mikhail Khludnev <mkhl@apache.org> * make unnecessary method slow but correct. Signed-off-by: Mikhail Khludnev <mkhl@apache.org> * make unnecessary method slow but correct. Signed-off-by: Mikhail Khludnev <mkhl@apache.org> * Polish test coverage Signed-off-by: Mikhail Khludnev <mkhl@apache.org> * CHANGELOG.md Signed-off-by: Mikhail Khludnev <mkhl@apache.org> * assertThrows Signed-off-by: Mikhail Khludnev <mkhl@apache.org> * spotlessApply Signed-off-by: Mikhail Khludnev <mkhl@apache.org> * coverage tests and refactoring Signed-off-by: Mikhail Khludnev <mkhl@apache.org> * javadoc Signed-off-by: Mikhail Khludnev <mkhl@apache.org> * javadoc Signed-off-by: Mikhail Khludnev <mkhl@apache.org> * mark nocommit Signed-off-by: Mikhail Khludnev <mkhl@apache.org> * one more nocommit test Signed-off-by: Mikhail Khludnev <mkhl@apache.org> * forbidden api Signed-off-by: Mikhail Khludnev <mkhl@apache.org> * no commit for out of line tests Signed-off-by: Mikhail Khludnev <mkhl@apache.org> * Review Signed-off-by: Mikhail Khludnev <mkhl@apache.org> --------- Signed-off-by: Mikhail Khludnev <mkhl@apache.org> Signed-off-by: Mikhail Khludnev <mkhludnev@users.noreply.github.com>
Followup for opensearch-project#17714: Remove redundant tests (opensearch-project#17902) * Remove redundant tests Signed-off-by: Mikhail Khludnev <mkhl@apache.org> * Fix empty collection test Signed-off-by: Mikhail Khludnev <mkhl@apache.org> --------- Signed-off-by: Mikhail Khludnev <mkhl@apache.org>
|
this also includes backporting #17902 fix |
|
@jainankitk you are welcome |
|
❌ Gradle check result for 46bbb92: 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? |
|
@jainankitk may you consider for merging this backport? Please! |
|
Please backport. |
Sorry, missed this earlier. Approved now, will retry the gradle check |
|
❕ Gradle check result for 46bbb92: UNSTABLE Please review all flaky tests that succeeded after retry and create an issue if one does not already exist to track the flaky failure. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## 2.x #17916 +/- ##
============================================
- Coverage 71.99% 71.95% -0.04%
+ Complexity 66114 66081 -33
============================================
Files 5348 5352 +4
Lines 307550 307683 +133
Branches 44906 44919 +13
============================================
- Hits 221409 221394 -15
- Misses 67714 67859 +145
- Partials 18427 18430 +3 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Is it worth to add into |
Yes, we can call this out in the documentation explicitly. Probably needs to go here - https://docs.opensearch.org/docs/latest/query-dsl/term/terms-set/ ? |
In DSL it's ref: #17714 |
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.