Skip to content

Implement GroupsAccumulator for array_agg aggregation function #10145

Closed as duplicate

Description

@lkt

Is your feature request related to a problem or challenge?

Based on the article Aggregating Millions of Groups Fast in Apache Arrow DataFusion it's possible to optimise aggregation functions using GroupsAccumulator.

Describe the solution you'd like

Implement GroupsAccumulator for array_agg aggregation function

Describe alternatives you've considered

No response

Additional context

No response

Activity

  1. alamb commented on Sep 29, 2025

    @alamb
    Contributor

    Also related is the memory use in

  2. vegarsti commented on Sep 29, 2025

    @vegarsti
    Contributor

    take

  3. alamb commented on Sep 29, 2025

    @alamb
    Contributor

    take

    I believe @duongcongtoai may be working on this too -- see #17446 (comment)

    It would probably be a good idea to coordinate with him

  4. vegarsti commented on Sep 29, 2025

    @vegarsti
    Contributor

    take

    I believe @duongcongtoai may be working on this too -- see #17446 (comment)

    It would probably be a good idea to coordinate with him

    Oh oops, I didn't realize that's what he was doing. Thanks!

  5. vegarsti commented on Sep 29, 2025

    @vegarsti
    Contributor

    take

    I believe @duongcongtoai may be working on this too -- see #17446 (comment)

    It would probably be a good idea to coordinate with him

    I can't see a way to unassign myself. Sorry about that. Feel free to unassign.

    Are there any others you can think of that are missing GroupsAccumulator? I couldn't find any on the issue tracker.

  6. vegarsti commented on Sep 29, 2025

    @vegarsti
    Contributor

    Indeed he is! #17446 (comment) Sorry!

  7. alamb commented on Oct 1, 2025

    @alamb
    Contributor

    Are there any others you can think of that are missing GroupsAccumulator? I couldn't find any on the issue tracker.

    You can look for anything that implements AggregateUDFImpl that doesn't return GroupsAccumulator

    https://github.com/search?q=repo%3Aapache%2Fdatafusion+%22impl+AggregateUDFImpl%22&type=code

    There are a bunch of them, but given the complexity of implementing and testing GroupsAccumulator I think it would make sense to pick aggregate functions that we think are important to invest in (both code and review). For example, any aggregate functions that show up in benchmarks

  8. alamb commented on Feb 24, 2026

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

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions