[ https://issues.apache.org/jira/browse/ARROW-4563?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17661585#comment-17661585 ]
Rok Mihevc commented on ARROW-4563: ----------------------------------- This issue has been migrated to [issue #21109|https://github.com/apache/arrow/issues/21109] on GitHub. Please see the [migration documentation|https://github.com/apache/arrow/issues/14542] for further details. > [Python] pa.decimal128 should validate inputs > --------------------------------------------- > > Key: ARROW-4563 > URL: https://issues.apache.org/jira/browse/ARROW-4563 > Project: Apache Arrow > Issue Type: Bug > Components: Python > Affects Versions: 0.12.0 > Reporter: Antoine Pitrou > Assignee: Antoine Pitrou > Priority: Major > Labels: pull-request-available > Fix For: 0.13.0 > > Time Spent: 1h 40m > Remaining Estimate: 0h > > The precision shouldn't be higher than 38, but 39 is happily accepted > currently: > {code:python} > >>> ty = pa.decimal128(39, 0) > >>> > >>> arr = pa.array([2**127], type=ty) > >>> > >>> arr > >>> > <pyarrow.lib.Decimal128Array object at 0x7f9b89444138> > [ > -170141183460469231731687303715884105728 > ] > {code} -- This message was sent by Atlassian Jira (v8.20.10#820010)