You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2018/01/24 23:51:00 UTC

[jira] [Commented] (ARROW-2017) Array initialization with large (>2**31-1) uint64 values fails

    [ https://issues.apache.org/jira/browse/ARROW-2017?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16338443#comment-16338443 ] 

ASF GitHub Bot commented on ARROW-2017:
---------------------------------------

wesm opened a new pull request #1504: ARROW-2017: [Python] Use unsigned PyLong API for uint64 values over int64 range
URL: https://github.com/apache/arrow/pull/1504
 
 
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


> Array initialization with  large (>2**31-1) uint64 values fails
> ---------------------------------------------------------------
>
>                 Key: ARROW-2017
>                 URL: https://issues.apache.org/jira/browse/ARROW-2017
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: Python
>    Affects Versions: 0.8.0
>         Environment: python 3.6, 3.5, 2.7, on OSX and Linux
>            Reporter: Ian Roddis
>            Assignee: Wes McKinney
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 0.9.0
>
>
> Trying to create pyarrow arrays with large values causes a 'too big to convert' error:
> Python 3.5.1 (default, Jun  6 2016, 14:30:01)
> Type "copyright", "credits" or "license" for more information.
> IPython 5.1.0 -- An enhanced Interactive Python.
> ?         -> Introduction and overview of IPython's features.
> %quickref -> Quick reference.
> help      -> Python's own help system.
> object?   -> Details about 'object', use 'object??' for extra details.
> In [1]: import pyarrow as pa
> In [2]: pa.array([2**63-1], type=pa.uint64())
> Out[2]:
> <pyarrow.lib.UInt64Array object at 0x1050e73b8>
> [
>   9223372036854775807
> ]
> In [3]: pa.array([2**63], type=pa.uint64())
> ---------------------------------------------------------------------------
> ArrowException                            Traceback (most recent call last)
> <ipython-input-3-0d103b16c512> in <module>()
> ----> 1 pa.array([2**63], type=pa.uint64())
> /Users/roddis/.pyenv/versions/3.5.1/envs/g3.5.1/lib/python3.5/site-packages/pyarrow/array.pxi in pyarrow.lib.array (/Users/travis/build/BryanCutler/arrow-dist/arrow/python/build/temp.macosx-10.6-intel-3.5/lib.cxx:29283)()
> /Users/roddis/.pyenv/versions/3.5.1/envs/g3.5.1/lib/python3.5/site-packages/pyarrow/array.pxi in pyarrow.lib._sequence_to_array (/Users/travis/build/BryanCutler/arrow-dist/arrow/python/build/temp.macosx-10.6-intel-3.5/lib.cxx:27945)()
> /Users/roddis/.pyenv/versions/3.5.1/envs/g3.5.1/lib/python3.5/site-packages/pyarrow/error.pxi in pyarrow.lib.check_status (/Users/travis/build/BryanCutler/arrow-dist/arrow/python/build/temp.macosx-10.6-intel-3.5/lib.cxx:9068)()
> ArrowException: Unknown error: int too big to conver



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)