Description
In general, ES|QL supports implicit casting for strings to datetimes. Take date_diff("day", "2022", "2023") for example.
However, binary operators applied to dates and timespans are currently an exception.
For example, I would expect | eval "2022" - 1 day to work.
Description
In general, ES|QL supports implicit casting for strings to datetimes. Take
date_diff("day", "2022", "2023")for example.However, binary operators applied to dates and timespans are currently an exception.
For example, I would expect
| eval "2022" - 1 dayto work.