-
Couldn't load subscription status.
- Fork 2.3k
Null field when getting point values for geopoint sort #18843
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
Conversation
Signed-off-by: Anthony Leong <aj.leong623@gmail.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #18843 +/- ##
============================================
- Coverage 72.87% 72.80% -0.08%
+ Complexity 69182 69112 -70
============================================
Files 5633 5633
Lines 317951 317953 +2
Branches 45986 45987 +1
============================================
- Hits 231706 231471 -235
- Misses 67438 67762 +324
+ Partials 18807 18720 -87 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Signed-off-by: Anthony Leong <aj.leong623@gmail.com>
|
❕ Gradle check result for de82425: 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. |
It's fine if you tested the query manually. Can you provide the request and response sample with your change? |
|
@owaiskazi19 I was able to recreate the errors then swapped out the change I made. Here are the results. Create IndexRequest: Response: Create documentsDocument1: Response: Document2: Response: Search 1 Before ChangeRequest: Response: Search 2 Before ChangeRequest: Response: Search 1 After ChangeRequest: Response: Search 2 After ChangeRequest: Response: |
Signed-off-by: Anthony Leong <aj.leong623@gmail.com>
|
❌ Gradle check result for a8d94d9: 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? |
Signed-off-by: Anthony Leong <aj.leong623@gmail.com>
Signed-off-by: Anthony Leong <aj.leong623@gmail.com>
|
@owaiskazi19 When I stepped through the |
I don't think so. Can you add a UT for it? |
Signed-off-by: Anthony Leong <aj.leong623@gmail.com>
|
❌ Gradle check result for 0a10fc2: 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? |
|
@owaiskazi19 I found a preexisting unit test with |
|
@owaiskazi19 let me know if you have any suggestions. |
restarted gradle check |
|
❌ Gradle check result for 0a10fc2: 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? |
Signed-off-by: Anthony Leong <aj.leong623@gmail.com>
|
❌ Gradle check result for 42b6129: null 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? |
|
@cwperks another look? |
…oject#18843) * null catch Signed-off-by: Anthony Leong <aj.leong623@gmail.com> * added tests for code coverage Signed-off-by: Anthony Leong <aj.leong623@gmail.com> * Update server/src/main/java/org/opensearch/search/internal/ExitableDirectoryReader.java Co-authored-by: Owais Kazi <owaiskazi19@gmail.com> Signed-off-by: Anthony Leong <aj.leong623@gmail.com> * empty string check Signed-off-by: Anthony Leong <aj.leong623@gmail.com> * add yaml test Signed-off-by: Anthony Leong <aj.leong623@gmail.com> * add extra test Signed-off-by: Anthony Leong <aj.leong623@gmail.com> * spotless apply Signed-off-by: Anthony Leong <aj.leong623@gmail.com> * random change to rerun workflow Signed-off-by: Anthony Leong <aj.leong623@gmail.com> * rerun workflow Signed-off-by: Anthony Leong <aj.leong623@gmail.com> * added getPointValues unit test Signed-off-by: Anthony Leong <aj.leong623@gmail.com> * non-deterministic tests Signed-off-by: Anthony Leong <aj.leong623@gmail.com> --------- Signed-off-by: Anthony Leong <aj.leong623@gmail.com> Co-authored-by: Owais Kazi <owaiskazi19@gmail.com>
Description
This change allows us to skip getting
PointValuesfor fields that are null because null fields cannot hold any values.Related Issues
Resolves opensearch-project/security#5503 #18420
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.