You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2021/07/28 07:22:07 UTC

[GitHub] [superset] Icarooooos commented on issue #15876: `Python int too large to convert to C long` after sqllab query

Icarooooos commented on issue #15876:
URL: https://github.com/apache/superset/issues/15876#issuecomment-888076849


   Reason:
   ```python
   >>> import pyarrow as pa
   >>> pa.array([2 ** 63 - 1])
   <pyarrow.lib.Int64Array object at 0x7f87edf153d0>
   [
     9223372036854775807
   ]
   >>> pa.array([2 ** 63])
   Traceback (most recent call last):
     File "<stdin>", line 1, in <module>
     File "pyarrow/array.pxi", line 306, in pyarrow.lib.array
     File "pyarrow/array.pxi", line 39, in pyarrow.lib._sequence_to_array
     File "pyarrow/error.pxi", line 141, in pyarrow.lib.pyarrow_internal_check_status
   OverflowError: Python int too large to convert to C long
   >>> pa.array([2 ** 63], type=pa.uint64())
   <pyarrow.lib.UInt64Array object at 0x7f87edf15360>
   [
     9223372036854775808
   ]
   ```
   


-- 
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: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org