You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Antoine Pitrou (JIRA)" <ji...@apache.org> on 2019/02/14 15:49:00 UTC

[jira] [Assigned] (ARROW-4563) [Python] pa.decimal128 should validate inputs

     [ https://issues.apache.org/jira/browse/ARROW-4563?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Antoine Pitrou reassigned ARROW-4563:
-------------------------------------

    Assignee: Antoine Pitrou

> [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
>
> 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
(v7.6.3#76005)