Skip to content

JNI support for SUM_WITH_OVERFLOW aggregation#22404

Open
mythrocks wants to merge 2 commits intorapidsai:mainfrom
mythrocks:sum-with-overflow-jni
Open

JNI support for SUM_WITH_OVERFLOW aggregation#22404
mythrocks wants to merge 2 commits intorapidsai:mainfrom
mythrocks:sum-with-overflow-jni

Conversation

@mythrocks
Copy link
Copy Markdown
Contributor

Description

This commit adds JNI bindings for cudf's SUM_WITH_OVERFLOW aggregation, which returns a struct of {sum, overflow: BOOL8} in a single fused kernel pass. This mirrors the C++ surface:

  1. reduction (INT64 only)
  2. hash-based groupby (INT8/16/32/64 + decimal)
  3. not exposed for sort groupby, scan, segmented reduce, or rolling, since cudf does not implement those paths.

This should allow us to retire the chunked-sum workaround in Aggregation64Utils eventually.

Checklist

  • I am familiar with the Contributing Guidelines.
  • New or existing tests cover these changes.
  • The documentation is up to date with these changes.

@mythrocks mythrocks requested a review from a team as a code owner May 7, 2026 00:00
@copy-pr-bot
Copy link
Copy Markdown

copy-pr-bot Bot commented May 7, 2026

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@mythrocks mythrocks self-assigned this May 7, 2026
@github-actions github-actions Bot added the Java Affects Java cuDF API. label May 7, 2026
This commit adds JNI bindings for cudf's SUM_WITH_OVERFLOW aggregation, which returns a struct of {sum, overflow: BOOL8} in a single fused kernel pass.
This mirrors the C++ surface:
  1. reduction (INT64 only)
  2. hash-based groupby (INT8/16/32/64 + decimal)
  3. not exposed for sort groupby, scan, segmented reduce, or rolling, since cudf does not implement those paths.

This should allow us to retire the chunked-sum workaround in `Aggregation64Utils` eventually.

Signed-off-by: MithunR <[email protected]>
@mythrocks mythrocks force-pushed the sum-with-overflow-jni branch from 6ae2ff9 to 484fba7 Compare May 7, 2026 00:01
@mythrocks mythrocks added feature request New feature or request non-breaking Non-breaking change labels May 7, 2026
@mythrocks
Copy link
Copy Markdown
Contributor Author

cc @paul-aiyedun.

Signed-off-by: MithunR <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature request New feature or request Java Affects Java cuDF API. non-breaking Non-breaking change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant