You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Wes McKinney (Jira)" <ji...@apache.org> on 2019/08/19 19:51:00 UTC

[jira] [Commented] (ARROW-5966) [Python] Capacity error when converting large UTF32 numpy array to arrow array

    [ https://issues.apache.org/jira/browse/ARROW-5966?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16910700#comment-16910700 ] 

Wes McKinney commented on ARROW-5966:
-------------------------------------

This is buggy. It doesn't look like it's too horrible to fix. Unfortunately we have difference code paths for this case between numpy_to_arrow.cc and python_to_arrow.cc

> [Python] Capacity error when converting large UTF32 numpy array to arrow array
> ------------------------------------------------------------------------------
>
>                 Key: ARROW-5966
>                 URL: https://issues.apache.org/jira/browse/ARROW-5966
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: Python
>    Affects Versions: 0.13.0, 0.14.0
>            Reporter: Igor Yastrebov
>            Assignee: Wes McKinney
>            Priority: Major
>             Fix For: 0.15.0
>
>
> Trying to create a large string array fails with 
> ArrowCapacityError: Encoded string length exceeds maximum size (2GB)
> instead of creating a chunked array.
>  
> A reproducible example:
> {code:java}
> import uuid
> import numpy as np
> import pyarrow as pa
> li = []
> for i in range(100000000):
>     li.append(uuid.uuid4().hex)
> arr = np.array(li)
> parr = pa.array(arr)
> {code}
> Is it a regression or was it never properly fixed: [https://github.com/apache/arrow/issues/1855]?
>  
>  



--
This message was sent by Atlassian Jira
(v8.3.2#803003)