Skip to content

[C++][Python] Non decomposable aggregation UDF #35515

Closed

Description

@icexelloss

Describe the enhancement requested

Non decomposable aggregation is aggregation that cannot be split into consume/merge/finalize. This is often when the logic rewritten with external python libraries (numpy, pandas, statmodels, etc) and those either cannot be decomposed or not worthy the effect (these are often one-off function instead of reusable one). This PR implements the support for non decomposable aggregation UDFs.

The major issue with non decomposable UDF is that the UDF needs to see all data at once, unlike scalar UDF where UDF only needs to see a batch at a time. This makes non decomposable not so useful as it is same as collect all the data to a pd.DataFrame and apply the UDF on it. However, one very application of non decomposable UDF is with segmented aggregation. To refresh, segmented aggregation works on ordered data and passed one logic chunk at a time (e.g., all data with the same date). With segmented aggregation and non decomposable aggregation UDF, the user can apply any custom aggregation logic over large stream of ordered data, with the memory overhead of a single segment.

Component(s)

C++, Python

Activity

  1. icexelloss commented on May 9, 2023

    @icexelloss
    ContributorAuthor

    take

  2. added this to the 13.0.0 milestone on Jun 8, 2023
  3. added a commit that references this issue on Jun 29, 2023
  4. added a commit that references this issue on Aug 8, 2023
  5. added a commit that references this issue on Nov 13, 2023
  6. added a commit that references this issue on Jan 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions