You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Antoine Pitrou (JIRA)" <ji...@apache.org> on 2018/02/14 14:14:00 UTC

[jira] [Commented] (ARROW-2068) [Python] Expose Array's buffers to Python users

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

Antoine Pitrou commented on ARROW-2068:
---------------------------------------

How do we treat the null bitmap?
 * choice #1: return a list of all buffers, including the null bitmap buffer in position 0
 * choice #2: return a list of all buffers except the null bitmap buffer, and have a separate method to return the latter
 * choice #3, return a {{(null bitmap buffer, list of other buffers)}} tuple

Either choice #2 or #3 sounds better than #1 to me. Note that in both cases, the returned null bitmap buffer could be None.

> [Python] Expose Array's buffers to Python users
> -----------------------------------------------
>
>                 Key: ARROW-2068
>                 URL: https://issues.apache.org/jira/browse/ARROW-2068
>             Project: Apache Arrow
>          Issue Type: Improvement
>          Components: Python
>            Reporter: Wes McKinney
>            Priority: Major
>
> This amounts to converting {{arr->data()->buffers}} to a list of {{pyarrow.Buffer}} objects



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