-
Notifications
You must be signed in to change notification settings - Fork 2.3k
[fixes #16599] Field-level ignore_malformed should override index-level setting
#18706
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
[fixes #16599] Field-level ignore_malformed should override index-level setting
#18706
Conversation
…d override index-level setting Signed-off-by: Mikhail Stepura <[email protected]>
server/src/test/java/org/opensearch/index/mapper/NumberFieldMapperTests.java
Show resolved
Hide resolved
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #18706 +/- ##
============================================
- Coverage 72.90% 72.77% -0.14%
+ Complexity 68587 68512 -75
============================================
Files 5566 5566
Lines 314701 314712 +11
Branches 45653 45653
============================================
- Hits 229434 229032 -402
- Misses 66655 67057 +402
- Partials 18612 18623 +11 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Signed-off-by: Mikhail Stepura <[email protected]>
2eb4878 to
1454d32
Compare
|
❌ Gradle check result for 5f37584: 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? |
Now I've added a new test there. Let me know if that's sufficient |
|
❌ Gradle check result for 76990b8: 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? |
76990b8 to
f44fbf4
Compare
|
❌ Gradle check result for f44fbf4: 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 4336b3a: 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. |
Signed-off-by: Andrew Ross <[email protected]>
Co-authored-by: Andrew Ross <[email protected]> Signed-off-by: Mikhail Stepura <[email protected]>
Signed-off-by: Mikhail Stepura <[email protected]>
Signed-off-by: Mikhail Stepura <[email protected]>
4336b3a to
5a095f2
Compare
|
@andrross this is ready for review. Thanks for the feedback! |
Signed-off-by: Mikhail Stepura <[email protected]>
83b0b4f to
21d0cd5
Compare
…d override index-level setting (opensearch-project#18706) * [fixes opensearch-project#16599] Field-level `ignore_malformed` should override index-level setting Signed-off-by: Mikhail Stepura <[email protected]> * CHANGELOG.md Signed-off-by: Mikhail Stepura <[email protected]> * Update CHANGELOG.md Co-authored-by: Andrew Ross <[email protected]> Signed-off-by: Mikhail Stepura <[email protected]> * API level test Signed-off-by: Mikhail Stepura <[email protected]> * Ignore for the versions without the fix Signed-off-by: Mikhail Stepura <[email protected]> * Cleanup Signed-off-by: Mikhail Stepura <[email protected]> --------- Signed-off-by: Mikhail Stepura <[email protected]> Signed-off-by: Andrew Ross <[email protected]> Signed-off-by: Mikhail Stepura <[email protected]> Co-authored-by: Andrew Ross <[email protected]>
…d override index-level setting (opensearch-project#18706) * [fixes opensearch-project#16599] Field-level `ignore_malformed` should override index-level setting Signed-off-by: Mikhail Stepura <[email protected]> * CHANGELOG.md Signed-off-by: Mikhail Stepura <[email protected]> * Update CHANGELOG.md Co-authored-by: Andrew Ross <[email protected]> Signed-off-by: Mikhail Stepura <[email protected]> * API level test Signed-off-by: Mikhail Stepura <[email protected]> * Ignore for the versions without the fix Signed-off-by: Mikhail Stepura <[email protected]> * Cleanup Signed-off-by: Mikhail Stepura <[email protected]> --------- Signed-off-by: Mikhail Stepura <[email protected]> Signed-off-by: Andrew Ross <[email protected]> Signed-off-by: Mikhail Stepura <[email protected]> Co-authored-by: Andrew Ross <[email protected]>
…d override index-level setting (opensearch-project#18706) * [fixes opensearch-project#16599] Field-level `ignore_malformed` should override index-level setting Signed-off-by: Mikhail Stepura <[email protected]> * CHANGELOG.md Signed-off-by: Mikhail Stepura <[email protected]> * Update CHANGELOG.md Co-authored-by: Andrew Ross <[email protected]> Signed-off-by: Mikhail Stepura <[email protected]> * API level test Signed-off-by: Mikhail Stepura <[email protected]> * Ignore for the versions without the fix Signed-off-by: Mikhail Stepura <[email protected]> * Cleanup Signed-off-by: Mikhail Stepura <[email protected]> --------- Signed-off-by: Mikhail Stepura <[email protected]> Signed-off-by: Andrew Ross <[email protected]> Signed-off-by: Mikhail Stepura <[email protected]> Co-authored-by: Andrew Ross <[email protected]>
Description
There are 9 types of fields that support setting of
ignore_malformedproperty, see the table below.The current logic checks for the index level
FieldMapper.IGNORE_MALFORMED_SETTINGincatchsection inparse(ParseContext context)in theFieldMapperclass. The current implementation has no visibility into field level settings.The proposed changes adding an ability for
FieldMapperto get access field-level setting viaignoreMalformed()method.ipIpFieldMapperip_rangeRangeFieldMappergeo_pointAbstractGeometryFieldMappergeo_shapeAbstractGeometryFieldMapperxy_pointAbstractGeometryFieldMapperxy_shapeAbstractGeometryFieldMapperNumberFieldMapper,ScaledFloatFieldMapperderivedDerivedFieldMapperdateDateFieldMapperRelated Issues
Resolves #16599
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.