[python] Align FieldSumAgg with Java implementation#8719
Conversation
…gator_rejected default aggregator to unsupported `collect`.
|
This is also affected by the shared Decimal implementation; a valid DECIMAL(38,0) sum operation will fail due to precision=28, and encoding/decoding of unscaled bytes with scale>18 will also fail. |
Fixed. This is resolved by the updates in the shared Decimal implementation (depends on #8718). |
|
Please resolve conflicts. |
Resolved, thanks! |
|
|
Thanks. Fixed! |
Purpose
This PR aligns the Python
FieldSumAggimplementation with the Java implementation.The changes include:
TINYINT,SMALLINT,INT,BIGINT).DECIMALaggregation with precision and scale handling.Dependency
This PR depends on #8718, which introduces the Python
Decimalimplementation and the numeric boundary constants used for overflow checking.Tests
python -m pytest pypaimon/tests/test_field_aggregators.py::FieldSumAggTest -qpython -m pytest pypaimon/tests/test_aggregation_e2e.py -qpython -m pytest pypaimon/tests/test_aggregation_merge_function.py -qgit diff --check