[
https://issues.apache.org/jira/browse/ARROW-17393?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Joris Van den Bossche updated ARROW-17393:
------------------------------------------
Summary: [Python] pyarrow large integer conversion (was: pyarrow large
integer conversion)
> [Python] 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
> Priority: Major
>
> 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)