Date formatting error when doing descending sort on empty epoch_millis date field #103489
Closed
Labels
>bug
:Search/Search
Search-related issues that do not fall into other categories
Team:Search
Meta label for search team
Elasticsearch Version
8.11.3
Installed Plugins
No response
Java Version
bundled
OS Version
Linux 69d007f8c352 6.4.16-linuxkit #1 SMP PREEMPT Thu Nov 16 10:49:20 UTC 2023 aarch64 aarch64 aarch64 GNU/Linux
Problem Description
Summary
Encountering a date formatting issue in Elasticsearch 8.x.x when performing a search with sorting the documents in descending order based on the
date
type field with theepoch_millis
formatExpected Result
The search results should be returned without errors, and the documents should be sorted by the
date
field in descending order.Actual Result
Encountering a date_time_exception with the reason
Field EpochMillis cannot be printed as the value -9223372036854775808 cannot be negative according to the SignStyle
Additional Information
epoch_millis
format.Steps to Reproduce
Create an index with a date field mapping using the epoch_millis format
Populate the index with sample data using the Bulk API
Attempt to perform a search with sorting by date in descending order
Response
The text was updated successfully, but these errors were encountered: