Skip to content

ESQL: Optimize away count(null) #100170

@costin

Description

@costin

Description

Count aggregation should return the number of non-null values for a given column.
count(literal) counts the items by replacing them with the given literal. However count(null) always returns zero since the values are replaced with null which count skips.

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