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

Reply via email to