Skip to content

ESQL: declared MVs wrongly optimised past STATS #117013

@bpintea

Description

@bpintea

Description

The following test should work:

evalGroupAfterStatsOverRow
ROW type = ["one", "two"]
| STATS BY type
| EVAL is_one = type == "one"
| EVAL is_two = type == "two"
;

type:keyword   |is_one:boolean |is_two:boolean
one            |true           |false
two            |false          |true

but if now fails, is_one and is_two being wrongly returned as null.
(Disabling PropagateEvalFoldables in the optimiser fixes it.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions