Skip to content

[BUG] IF function does not work inside aggregation function #1076

Open
@penghuo

Description

@penghuo

What is the bug?
The following PPL query throw syntax error exception. ANTLR parse IF as keywordsCanBeId, instead of functionName.

source=tbl | stats sum(IF(a>10, 1, 0)) by group

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions