Skip to content

[C++][Compute] Consider removing ScalarAggregateKernel #29116

Closed as not planned
Closed as not planned

Description

@asfimport

Scalar aggregation does not incur large memory overhead for the associated KernelState objects, so maybe it'd be acceptable to remove explicit scalar aggregation kernels in favor of reusing grouped aggregation kernels with a single group. This would decrease our maintenance burden significantly, and if the benchmarks don't show a regression for single-group aggregation then there's no reason not to.

Even if there is a performance regression we could bundle the scalar and grouped aggregate kernels in the same compute::Function and decide between them in Dispatch*, rather than confusingly defining distinct "sum" and "hash_sum" functions

Reporter: Ben Kietzman / @bkietz

PRs and other links:

Note: This issue was originally created as ARROW-13451. Please see the migration documentation for further details.

Activity

  1. asfimport commented on Jul 27, 2021

    @asfimport
    Author
  2. asfimport commented on Aug 9, 2021

    @asfimport
    Author

    Ben Kietzman / @bkietz:
    At the same time, it'd be nice to make the helper functions internal::GetKernels etc public and well tested.

    See also: #10793 (comment)

  3. github-actions commented on Feb 6, 2026

    @github-actions

    This issue has been marked as stale because it has had no activity in the past 365 days. Please remove the stale label or comment below, or this issue will be closed in 14 days. If this improvement is still desired but has no current owner, please add the 'Status: needs champion' label.

  4. added
    Status: stale-warning
    on Feb 6, 2026
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

    Component: C++Status: stale-warningType: enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions