Skip to content

implement columnar accumulator states #645

@richox

Description

@richox

Is your feature request related to a problem? Please describe.
in HashAggregateExec, currently all accumutors share the same AccumRow in one grouped record, which requires a lot of bytes-hacking and the performance is not good. we should consider using seperated row for each accumulator, so that we can update each AccumColumn independently. only convert columns to rows when doing partial merging.

Describe the solution you'd like

  1. implement a common trait AccumColumn, replacing the old AccumRow.
  2. implement columnar updating/merging.
  3. implement C2R for partial merging.

Describe alternatives you've considered
further more, we can use columnar storage for partial merging, this requires more complex handling of output schema of partial aggr.
Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions