Skip to content

Esql Optimize edge case comparisons between nanos and millis #118095

@not-napoleon

Description

@not-napoleon

Description

In #118027 we introduced the ability to compare nanosecond dates to millisecond dates directly in ES|QL. In the case where the millisecond value is both a constant and out of the nanosecond range (i.e. before epoch or after 2262-04-11T23:47:16.854775807Z), we can replace the whole expression with a constant boolean at query parse time.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions