-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Support more than 1024 IP/masks with indexed field #16391
base: main
Are you sure you want to change the base?
Conversation
❌ Gradle check result for c9e2bd1: 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? |
❌ Gradle check result for c9e2bd1: 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? |
❌ Gradle check result for b6c3410: 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? |
it's an alt of #16202 |
server/src/main/java/org/opensearch/index/mapper/IpFieldMapper.java
Outdated
Show resolved
Hide resolved
❌ Gradle check result for 6a11b54: 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? |
❌ Gradle check result for 26ff736: 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? |
* Updating Ip fields to use doc_values to search Signed-off-by: Harsha Vamsi Kalluri <[email protected]> * Fix IP tests Signed-off-by: Harsha Vamsi Kalluri <[email protected]> * Fix skip to allow yaml test to pass on main Signed-off-by: Harsha Vamsi Kalluri <[email protected]> * Update tests to use existing test file Signed-off-by: Harsha Vamsi Kalluri <[email protected]> * Changing skip version to match bwc Signed-off-by: Harsha Vamsi Kalluri <[email protected]> * Using exact match instead of range Signed-off-by: Harsha Vamsi Kalluri <[email protected]> * Spotless Signed-off-by: Harsha Vamsi Kalluri <[email protected]> * Fix IP field tests Signed-off-by: Harsha Vamsi Kalluri <[email protected]> * Fix spotless + precommit failure Signed-off-by: Harsha Vamsi Kalluri <[email protected]> * Get point out of query and into value Signed-off-by: Harsha Vamsi Kalluri <[email protected]> * Fix term tests Signed-off-by: Harsha Vamsi Kalluri <[email protected]> * Add skip test logic to only doc_values test Signed-off-by: Harsha Vamsi Kalluri <[email protected]> --------- Signed-off-by: Harsha Vamsi Kalluri <[email protected]>
❌ Gradle check result for 01db875: 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? |
01db875
to
5849b96
Compare
❌ Gradle check result for 5849b96: 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? |
❌ Gradle check result for d03b618: 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? |
❌ Gradle check result for 7e1f8b4: 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? |
❌ Gradle check result for c429cf0: 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? |
Let's discuss edge cases, which are not obvious: doc_values only field with mask/ valuesIn this case we can just create index & doc_values field with mask/ values
The problem is that this boundary limit can't be decided on query parsing because sibling filter clauses may exceed MaxClauses limit. |
❌ Gradle check result for cfa3904: 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? |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #16391 +/- ##
============================================
+ Coverage 72.11% 72.14% +0.02%
- Complexity 65192 65251 +59
============================================
Files 5318 5318
Lines 303903 303949 +46
Branches 43970 43985 +15
============================================
+ Hits 219166 219288 +122
+ Misses 66786 66719 -67
+ Partials 17951 17942 -9 ☔ View full report in Codecov by Sentry. |
Signed-off-by: Mikhail Khludnev <[email protected]>
a4d65db
to
75b2719
Compare
❌ Gradle check result for 75b2719: 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? |
Hi there! |
Just a question, since with this change we still don't solve the problem completely (by and large, the limit might be hit anyway), is it worth the effort? |
I think it is: it unblocks large PS. Now, if |
Signed-off-by: Mikhail Khludnev <[email protected]>
LGTM, thanks @mkhludnev ! @msfroh anything from your side? |
server/src/test/java/org/opensearch/search/SearchIpFieldTermsTests.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, @mkhludnev! Looks good.
I agree that your new test should probably be marked as an IT, but otherwise I'm happy to merge.
server/src/test/java/org/opensearch/search/SearchIpFieldTermsTests.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Mikhail Khludnev <[email protected]>
Signed-off-by: Mikhail Khludnev <[email protected]>
server/src/internalClusterTest/java/org/opensearch/search/fields/SearchIpFieldTermsIT.java
Outdated
Show resolved
Hide resolved
server/src/internalClusterTest/java/org/opensearch/search/fields/SearchIpFieldTermsIT.java
Outdated
Show resolved
Hide resolved
Co-authored-by: Andriy Redko <[email protected]> Signed-off-by: Mikhail Khludnev <[email protected]>
Signed-off-by: Mikhail Khludnev <[email protected]>
Now
terms_query
over IP with mask/
values parsed asBooleanQuery
.BooleanQuery
is prone to max clauses limitProposal
Related Issues
Resolves #16200
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.