PyRSA opened a new pull request, #11032: URL: https://github.com/apache/paimon/pull/11032
### Purpose Make Python `FieldSumAgg` and `FieldProductAgg` honor the `fail-on-overflow` option, matching Java aggregation semantics. By default, integer overflow should wrap around using two's complement arithmetic instead of raising `ArithmeticError`. ### Changes - Honor `fields.<field>.sum.fail-on-overflow` and `fields.<field>.product.fail-on-overflow`. - Default to `false`, wrapping overflow for `TINYINT`, `SMALLINT`, `INT`, and `BIGINT`. - Raise `ArithmeticError` when `fail-on-overflow` is set to `true`. - Keep `DECIMAL`, `FLOAT`, and `DOUBLE` behavior unchanged. ### Tests - `python -m pytest pypaimon/tests/test_aggregation_e2e.py -q` - `python -m pytest pypaimon/tests/test_aggregation_merge_function.py -q` - `python -m pytest pypaimon/tests/test_field_aggregators.py -q` - `git diff --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]
