You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Uwe L. Korn (JIRA)" <ji...@apache.org> on 2018/04/21 20:48:00 UTC

[jira] [Commented] (ARROW-2491) [Python] Array.from_buffers does not work for ListArray

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

Uwe L. Korn commented on ARROW-2491:
------------------------------------

The `from_buffers` method currently does not provide the necessary feature set for nested data and only works for primitive types. I will add a {{NotImplementedError}} so that at least the segfaults are gone.

I'm working on the pickling at the moment and I'll have to get something similar for this working. Once the {{pickle}} roundtrip works, we can also discuss a possible alternative API for {{from_buffers}} for nested types.

> [Python] Array.from_buffers does not work for ListArray
> -------------------------------------------------------
>
>                 Key: ARROW-2491
>                 URL: https://issues.apache.org/jira/browse/ARROW-2491
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: C++, Python
>    Affects Versions: 0.9.0
>            Reporter: Uwe L. Korn
>            Assignee: Uwe L. Korn
>            Priority: Major
>             Fix For: 0.10.0
>
>
> When you get the buffers from a ListArray and feed it back into {{pyarrow.Array.from_buffers}} the code fails with a DCHECK: 
> {code}
> ./src/arrow/array.cc:247 Check failed: (data->buffers.size()) == (2)))
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)