Skip to content

ESQL: Optimize aggregations over literals/constant expressions #100182

@alex-spies

Description

@alex-spies

Description

Aggregations over literals and constant expressions can often be optimized so that no aggregation is evaluated.

Example:

from employees | stats m = max(1)

is equivalent to

from employees | eval m = 1 | keep m

Perform this optimization where possible (count(1) being a case where it's not possible).

Metadata

Metadata

Assignees

No one assigned

    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