-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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
Error: failed to parse field [...] of type [date] when painless script updates unrelated field #108977
Comments
Pinging @elastic/es-core-infra (Team:Core/Infra) |
Can you please add
That should give more details about where the error is actually occurring. |
|
Thanks for the info, I see what is happening. Your While understandably confusing, I think fixing this would be difficult. When reindexing we don't know about the mapped types when parsing the source, it's just a json object. It might be possible to rework reindexing to use the original source bytes, but not without a bit of rework. One workaround that should work is to use a string. So when indexing your original document, try this:
That should retain the orignal formatting when parsed as JSON, and then serialized again as a string to be reindexed. |
Thanks for the workaround. So far seems to work after fixing my existing data:
|
Elasticsearch Version
7.17.12
Installed Plugins
No response
Java Version
bundled
OS Version
Linux aa933ae49f18 5.15.49-linuxkit #1 SMP Tue Sep 13 07:51:46 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Problem Description
When trying to delete a field from an index, which contains an
epoch_second
date field with a decimal number, an unexpected error occurs on the date field and the deletion doesn't happen.Seems like in a certain scenario, ES does not recognise decimal numbers in the scientific notation it itself saves the data in.
Steps to Reproduce
Results in:
Strangely reindexing works fine with no errors:
Logs (if relevant)
No response
The text was updated successfully, but these errors were encountered: