You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "mariosasko (via GitHub)" <gi...@apache.org> on 2023/07/06 23:08:41 UTC

[GitHub] [arrow] mariosasko opened a new issue, #36520: [Python] `pa.array` fails for values larger than the default type range when no type is specified

mariosasko opened a new issue, #36520:
URL: https://github.com/apache/arrow/issues/36520

   ### Describe the bug, including details regarding any error messages, version, and platform.
   
   E.g., I would expect the following to work:
   ```python
   pa.array([2**64-1]) # OverflowError: Python int too large to convert to C long
   ```
   But it doesn't unless `type=pa.uint64()` is specified. This is not aligned with NumPy/Pandas - both infer `dtype=np.uint64` for this array.
   
   
   ### Component(s)
   
   Python


-- 
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: issues-unsubscribe@arrow.apache.org.apache.org

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


[GitHub] [arrow] jorisvandenbossche commented on issue #36520: [Python] `pa.array` fails for values larger than the default type range when no type is specified

Posted by "jorisvandenbossche (via GitHub)" <gi...@apache.org>.
jorisvandenbossche commented on issue #36520:
URL: https://github.com/apache/arrow/issues/36520#issuecomment-1634237219

   Given the comments on the PR:
   
   > Again, the problem is that the user will get different data types depending on the exact input values. This is fragile and error-prone.
   If you know you need uint64, the solution is to ask explicitly for it.
   
   I think we can close this issue as "won't fix" (and duplicate of https://github.com/apache/arrow/issues/19334)


-- 
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: github-unsubscribe@arrow.apache.org

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


[GitHub] [arrow] jorisvandenbossche closed issue #36520: [Python] `pa.array` fails for values larger than the default type range when no type is specified

Posted by "jorisvandenbossche (via GitHub)" <gi...@apache.org>.
jorisvandenbossche closed issue #36520: [Python] `pa.array` fails for values larger than the default type range when no type is specified
URL: https://github.com/apache/arrow/issues/36520


-- 
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: issues-unsubscribe@arrow.apache.org

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