-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Search dv only IP masks #16628
Search dv only IP masks #16628
Conversation
❌ Gradle check result for bf572a8: 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? |
server/src/main/java/org/opensearch/index/mapper/IpFieldMapper.java
Outdated
Show resolved
Hide resolved
@mkhludnev Could you please add entry to CHANGELOG.md for this change? thank you |
Signed-off-by: mikhail-khludnev <[email protected]>
Signed-off-by: mikhail-khludnev <[email protected]>
Signed-off-by: mikhail-khludnev <[email protected]>
❌ Gradle check result for f7eecfc: 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: mikhail-khludnev <[email protected]>
❌ Gradle check result for a859408: 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: mikhail-khludnev <[email protected]>
❕ Gradle check result for fa14302: 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 @@
## main #16628 +/- ##
============================================
+ Coverage 72.03% 72.11% +0.08%
- Complexity 65169 65232 +63
============================================
Files 5318 5318
Lines 303890 303895 +5
Branches 43968 43972 +4
============================================
+ Hits 218906 219155 +249
+ Misses 67051 66773 -278
- Partials 17933 17967 +34 ☔ View full report in Codecov by Sentry. |
server/src/main/java/org/opensearch/index/mapper/IpFieldMapper.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/index/mapper/IpFieldMapper.java
Outdated
Show resolved
Hide resolved
Signed-off-by: mikhail-khludnev <[email protected]>
Signed-off-by: mikhail-khludnev <[email protected]>
@msfroh LGTY? thanks! |
* search dv only ip masks Signed-off-by: mikhail-khludnev <[email protected]> * search dv only ip masks: changes Signed-off-by: Mikhail Khludnev <[email protected]> * drop fancy closures Signed-off-by: mikhail-khludnev <[email protected]> * drop fancy closures. one more Signed-off-by: mikhail-khludnev <[email protected]> * fix unit tests; add some more dvOnly Signed-off-by: mikhail-khludnev <[email protected]> * drop skipping dvOnly in 2.x Signed-off-by: mikhail-khludnev <[email protected]> * drop redundant brackets Signed-off-by: mikhail-khludnev <[email protected]> * extract conditions Signed-off-by: mikhail-khludnev <[email protected]> * asserts Signed-off-by: mikhail-khludnev <[email protected]> * spotless apply Signed-off-by: mikhail-khludnev <[email protected]> * bring back skip before Signed-off-by: mikhail-khludnev <[email protected]> * combine asserts Signed-off-by: mikhail-khludnev <[email protected]> * inline, copy-paste Signed-off-by: mikhail-khludnev <[email protected]> --------- Signed-off-by: mikhail-khludnev <[email protected]> Signed-off-by: Mikhail Khludnev <[email protected]> Co-authored-by: mikhail-khludnev <[email protected]> (cherry picked from commit d4d70d8) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* search dv only ip masks * search dv only ip masks: changes * drop fancy closures * drop fancy closures. one more * fix unit tests; add some more dvOnly * drop skipping dvOnly in 2.x * drop redundant brackets * extract conditions * asserts * spotless apply * bring back skip before * combine asserts * inline, copy-paste --------- (cherry picked from commit d4d70d8) Signed-off-by: mikhail-khludnev <[email protected]> Signed-off-by: Mikhail Khludnev <[email protected]> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: mikhail-khludnev <[email protected]>
Description
it fixes an edge case when docvalues-only (index:false) IP field is queried via IP mask (1.2.3.4/22 syntax). Now such query is ignored, this change makes it work.
Related Issues
relate #11508
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.