Skip to content

Improve 'ignore_malformed' handling for dates#60211

Merged
cbuescher merged 1 commit intoelastic:masterfrom
cbuescher:fix-52634
Aug 17, 2020
Merged

Improve 'ignore_malformed' handling for dates#60211
cbuescher merged 1 commit intoelastic:masterfrom
cbuescher:fix-52634

Conversation

@cbuescher
Copy link
Copy Markdown
Member

Currently we occasionally can get ArithmeticException from parsing bad input
values on 'date' fields that are passed on even if 'ignore_malformed' is set.
This change adds this exception to the ones we already catch for malformed
values.

Closes #52634

Currently we occasionally can get ArithmeticException from parsing bad input
values on 'date' fields that are passed on even if 'ignore_malformed' is set.
This change adds this exception to the ones we already catch for malformed
values.

Closes elastic#52634
@cbuescher cbuescher added >bug :Search Foundations/Mapping Index mappings, including merging and defining field types v8.0.0 v7.10.0 labels Jul 27, 2020
@elasticmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-search (:Search/Mapping)

@elasticmachine elasticmachine added the Team:Search Meta label for search team label Jul 27, 2020
Copy link
Copy Markdown
Contributor

@jtibshirani jtibshirani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The fix makes sense to me. It's too bad that Java time can produce an ArithmeticException during conversion.

@cbuescher cbuescher merged commit 3b44274 into elastic:master Aug 17, 2020
cbuescher pushed a commit that referenced this pull request Aug 17, 2020
Currently we occasionally can get ArithmeticException from parsing bad input
values on 'date' fields that are passed on even if 'ignore_malformed' is set.
This change adds this exception to the ones we already catch for malformed
values.

Closes #52634
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

>bug :Search Foundations/Mapping Index mappings, including merging and defining field types Team:Search Meta label for search team v7.10.0 v8.0.0-alpha1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DateFieldMapper ignore_malformed misses java.lang.ArithmeticException

4 participants