Skip to content

Integrate BatchCoalescer into RepartitionExec and remove from CoalesceBatches optimization rule #18782

@alamb

Description

@alamb

Is your feature request related to a problem or challenge?

The LimitedBatchCoalescer can now be used to integrate batch coalescing directly in ExecutionPlan implementations, which is better than using an external operator for the reasons described on #18779

Currently RepartitionExec needs a CoalesceBatches operator after for performance, see

.downcast_ref::<RepartitionExec>()

We should integrate coalescing directly in the operator

Describe the solution you'd like

  1. Add batch coalescing into RepartitionExec
  2. Remove RepartitionExec from the CoalesceBatches optimizer rule:
    .downcast_ref::<RepartitionExec>()

Describe alternatives you've considered

@Dandandan did this for FilterExec in these two PRs, so we can probably follow a similar model

Additional context

No response

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions