Skip to content
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

ignored_malfored flag is ignored in numeric types for out of range values #57272

Closed
iverase opened this issue May 28, 2020 · 2 comments · Fixed by #57287
Closed

ignored_malfored flag is ignored in numeric types for out of range values #57272

iverase opened this issue May 28, 2020 · 2 comments · Fixed by #57287
Labels
>bug :Search Foundations/Mapping Index mappings, including merging and defining field types Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch v7.7.0

Comments

@iverase
Copy link
Contributor

iverase commented May 28, 2020

It can be reproduce by:

PUT test
{
    "mappings": {
        "properties": {
            "number": {
                "type": "long",
                "ignore_malformed": true
            }
        }
    }
}

PUT test/_doc/1
{
    "number": 9223372036854775808
}

This will throw an error in 7.7.0:

{
  "error": {
    "root_cause": [
      {
        "type": "mapper_parsing_exception",
        "reason": "failed to parse field [number] of type [long] in document with id '1'. Preview of field's value: '9223372036854775808'"
      }
    ],
    "type": "mapper_parsing_exception",
    "reason": "failed to parse field [number] of type [long] in document with id '1'. Preview of field's value: '9223372036854775808'",
    "caused_by": {
      "type": "input_coercion_exception",
      "reason": "Numeric value (9223372036854775808) out of range of long (-9223372036854775808 - 9223372036854775807)\n at [Source: (org.elasticsearch.common.bytes.AbstractBytesReference$MarkSupportingStreamInputWrapper); line: 2, column: 34]"
    }
  }
@iverase iverase added >bug :Search Foundations/Mapping Index mappings, including merging and defining field types v7.7.0 labels May 28, 2020
@elasticmachine
Copy link
Collaborator

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

@elasticmachine elasticmachine added the Team:Search Meta label for search team label May 28, 2020
@iverase
Copy link
Contributor Author

iverase commented May 28, 2020

The error is due to the upgrade of the Jackson library. It adds a new exception type for put of range values which we don't catch:

FasterXML/jackson-core#508

@javanna javanna added Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch and removed Team:Search Meta label for search team labels Jul 16, 2024
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 Foundations Meta label for the Search Foundations team in Elasticsearch v7.7.0
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants