zfoobar commented on issue #35584:
URL: https://github.com/apache/arrow/issues/35584#issuecomment-1550267106

   See below - doesn't this indicate a more severe issue?
   
   18014398509481984 should be representable as a float64 without any 
conversion errors/rounding.
   
   ```
   >>> float(18014398509481983)
   1.8014398509481984e+16
   >>> int(1.8014398509481984e+16)
   18014398509481984
   >>> a = pa.array([18014398509481984], type=pa.float64())
   Traceback (most recent call last):
     File "<stdin>", line 1, in <module>
     File "pyarrow/array.pxi", line 327, in pyarrow.lib.array
       result = _sequence_to_array(obj, mask, size, type, pool, c_from_pandas)
     File "pyarrow/array.pxi", line 39, in pyarrow.lib._sequence_to_array
       chunked = GetResultValue(
     File "pyarrow/error.pxi", line 144, in 
pyarrow.lib.pyarrow_internal_check_status
       return check_status(status)
     File "pyarrow/error.pxi", line 100, in pyarrow.lib.check_status
       raise ArrowInvalid(message)
   pyarrow.lib.ArrowInvalid: Integer value 18014398509481984 is outside of the 
range exactly representable by a IEEE 754 double precision value
   ```
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to