-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Closed
Description
The precision shouldn't be higher than 38, but 39 is happily accepted currently:
>>> ty = pa.decimal128(39, 0)
>>> arr = pa.array([2**127], type=ty)
>>> arr
<pyarrow.lib.Decimal128Array object at 0x7f9b89444138>
[
-170141183460469231731687303715884105728
]Reporter: Antoine Pitrou / @pitrou
Assignee: Antoine Pitrou / @pitrou
Related issues:
- [Gandiva] validate that the precision/scale are within bounds (Blocked)
- [C++/Python] Validate scale and precision of decimal128 type (supercedes)
PRs and other links:
Note: This issue was originally created as ARROW-4563. Please see the migration documentation for further details.