EyobelG opened a new pull request, #7780: URL: https://github.com/apache/datafusion-comet/pull/7780
## Summary - Deduplicates the Legacy/Ansi/Try row (`SumIntegerAccumulator*`) and grouped (`SumIntGroupsAccumulator*`) integer SUM accumulators in `native/spark-expr/src/agg_funcs/sum_int.rs` (-235 net lines). - Introduces an `OverflowMode` trait (`LegacyMode`, `AnsiMode`, `TryMode`) and a single `dispatch_int_array` helper for `Int64`/`Int32`/`Int16`/`Int8` dispatch. - Unifies `SumIntegerAccumulator<M>` and `SumIntGroupsAccumulator<M>` for Legacy and Ansi, and reuses `dispatch_int_array` + the generic sum loops for Try while preserving Try's `has_all_nulls` semantics. Closes #6976. ## Test plan - Updated unit test instantiations in `native/spark-expr/src/agg_funcs/sum_int.rs` (`mod tests`). - No local Rust toolchain available in this environment — relying on CI to run `cargo test -p datafusion-comet-spark-expr sum_int`, `cargo clippy`, and `cargo fmt --check`. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
