Skip to content

Optimizing queries with multiple aggregations where one Is aggregating on DISTINCT #1320

@xudong963

Description

@xudong963

Is your feature request related to a problem or challenge? Please describe what you are trying to do.
Inspired by #1315, I think we can also do the optimization.

Describe the solution you'd like
Ref: https://www.qubole.com/blog/presto-optimizes-aggregations-over-distinct-values/

Describe alternatives you've considered
No

Additional context
Related PR: #1315

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    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