Skip to content

FilterExec: fuse filter and coalesce to avoid intermediate RecordBatch allocation #25512

Description

@Rich-T-kid

FilterExec currently calls filter_record_batch and then pushes the result into LimitedBatchCoalescer, materializing an intermediate filtered RecordBatch on every batch.

Arrow's BatchCoalescer exposes push_batch_with_filter which can fuse the two steps and avoid that allocation when its internal conditions are met.

LimitedBatchCoalescer should expose the same API so FilterExec can use it directly.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions