Skip to content

Conversation

@cbuescher
Copy link
Member

A recent change around date parsing (#46675) made it stricter, so we should now also
catch DateTimeExceptions in DateFieldMapper and ignore those when the
ignore_malformed option is set.
Also adding an additional test that would have caught this.

Closes #50081

A recent change (elastic#46675) introduced stricter date parsing. We should now also
catch DateTimeExceptions in DateFieldMapper and ignore those when the
`ignore_malformed` option is set. Also adding an additional test that would have
caught this.

Closes elastic#50081
@cbuescher cbuescher added >bug :Search Foundations/Mapping Index mappings, including merging and defining field types v7.5.1 labels Dec 11, 2019
@elasticmachine
Copy link
Collaborator

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

Copy link
Contributor

@jimczi jimczi left a comment

Choose a reason for hiding this comment

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

LGTM

@cbuescher cbuescher merged commit 70af176 into elastic:master Dec 13, 2019
cbuescher pushed a commit that referenced this pull request Dec 13, 2019
A recent change around date parsing (#46675) made it stricter, so we should now also
catch DateTimeExceptions in DateFieldMapper and ignore those when the
`ignore_malformed` option is set.

Closes #50081
cbuescher pushed a commit that referenced this pull request Dec 13, 2019
A recent change around date parsing (#46675) made it stricter, so we should now also
catch DateTimeExceptions in DateFieldMapper and ignore those when the
`ignore_malformed` option is set.

Closes #50081
SivagurunathanV pushed a commit to SivagurunathanV/elasticsearch that referenced this pull request Jan 23, 2020
A recent change around date parsing (elastic#46675) made it stricter, so we should now also
catch DateTimeExceptions in DateFieldMapper and ignore those when the
`ignore_malformed` option is set.

Closes elastic#50081
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 v7.5.1 v7.6.0 v8.0.0-alpha1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DateFieldMapper throws mapper_parser_exception even if ignore_malformed is set

4 participants