Skip to content

[ES|QL] implicit datetime casting for binary operator args #108432

@drewdaemon

Description

@drewdaemon

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.

Metadata

Metadata

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions