You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Donald Freeman (Jira)" <ji...@apache.org> on 2022/08/12 01:36:00 UTC

[jira] [Created] (ARROW-17393) pyarrow large integer conversion

Donald Freeman created ARROW-17393:
--------------------------------------

             Summary: pyarrow large integer conversion
                 Key: ARROW-17393
                 URL: https://issues.apache.org/jira/browse/ARROW-17393
             Project: Apache Arrow
          Issue Type: Bug
            Reporter: Donald Freeman


I have a json document that looks like this. 

{"number": 123451234512345123451234512}

I then run the below code. 

>>> from pyarrow.json import read_json
>>> pyarrow_table = read_json('pyarrow_test.json')
>>> pyarrow_table['number'][0].as_py().as_integer_ratio()
(123451234512345125900779520, 1)

notice the float that I get looks like it has been rounded or modified in some way.

 

Am I reading this file incorrectly or is there an issue with the conversion of this number?



--
This message was sent by Atlassian Jira
(v8.20.10#820010)