Skip to content

Enable filtered aggregation in PPL #215

Open
@chloe-zh

Description

@chloe-zh

Is your feature request related to a problem? Please describe.
The query engine has supported the filtered aggregation and SQL is enabled with this feature, but it is not enabled in PPL yet.

Describe the solution you'd like
Support filtered aggregations in PPL. For example:

POST _plugins/_ppl
{
  "query": "source=accounts | stats count() filter (where age <= 30) as age1, count() filter(where age > 30) as age2
}

Describe alternatives you've considered
Syntax TBD

Additional context
NA

Metadata

Metadata

Assignees

No one assigned

    Labels

    PPLPiped processing languageenhancementNew feature or request

    Type

    No type

    Projects

    Status

    Not Started

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions