[ES|QL] DATE_DIFF Integer Overflow returns nothing #125457
Labels
:Analytics/ES|QL
AKA ESQL
>bug
Team:Analytics
Meta label for analytical engine team (ESQL/Aggs/Geo)
team-discuss
Elasticsearch Version
8.17.1
Installed Plugins
No response
Java Version
bundled
OS Version
Container
Problem Description
When you run the
DATE_DIFF
function that produces a value larger than what can fit into an Integer (DATE_DIFF's response value), nothing is returned.I'm opening this as a bug for a few reasons, but it's possible that it might also be a feature request:
DATE_DIFF
being locked to a response ofinteger
rather thanlong
(or possibly definable/dynamic) seems somewhat limiting, especially with the smaller time units and longer date ranges.Steps to Reproduce
int
in any time unit.Example:
diff
int
Example:
diff
.Logs (if relevant)
No response
The text was updated successfully, but these errors were encountered: