Skip to content

Cannot combine adjacent partial and final AggregateExecs into a single AggregateExec #8778

@haruband

Description

@haruband

Describe the bug

It seems a optimizer cannot combine adjacent partial and final AggregateExecs into a single AggregateExec. Because a EnforceDistribution rule which runs before a CombinePartialFinalAggregate rule inserts a RepartitionExec for hashing between adjacent partial and final AggregateExecs.

To Reproduce

No response

Expected behavior

A optimizer should combine adjacent partial and final AggregateExecs, if possible.

Additional context

No response

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