Skip sum updates once SUM_WITH_OVERFLOW flag is set - #22696
Conversation
|
Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually. Contributors can view more details about this message here. |
|
/ok to test 6c614f1 |
|
/ok to test 1760e0c |
|
/ok to test 1818675 |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (9)
📝 WalkthroughSummary by CodeRabbit
WalkthroughThis PR updates the ChangesSUM_WITH_OVERFLOW Overflow Semantics
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Suggested reviewers
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ast-grep (0.43.0)java/src/test/java/ai/rapids/cudf/TableTest.javaWarning Review ran into problems🔥 ProblemsStopped waiting for pipeline failures after 30000ms. One of your pipelines takes longer than our 30000ms fetch window to run, so review may not consider pipeline-failure results for inline comments if any failures occurred after the fetch window. Increase the timeout if you want to wait longer or run a Comment |
davidwendt
left a comment
There was a problem hiding this comment.
Approving C++ changes.
Can you do a memcheck and racecheck on this as well?
All checks passed without hazards. |
|
/merge |
Description
Originally proposed by @shrshi at #19403 (comment) and follows the subsequent discussions in #22465 (comment)
This PR updates both
groupbyandreduceSUM_WITH_OVERFLOWso that once a group's (or the reduction's) overflow flag is set, the sum is no longer maintained:groupbyshort-circuits subsequent atomic adds for that group, andreducestops zeroing the wrapped result. The sum child is documented as unspecified on overflow; the boolean flag is the sole source of truth.Note that this is an ABI-breaking change, since the expected overflowed sum value is no longer the wrapped result. However, this should not impact downstream users, as relying on overflowed sum results is not considered valid behavior.
Checklist