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:37:00 UTC

[jira] [Closed] (ARROW-5907) [Python] base64 support of bytes-like

     [ https://issues.apache.org/jira/browse/ARROW-5907?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Wes McKinney closed ARROW-5907.
-------------------------------
    Resolution: Won't Fix

I don't think it makes sense to implement the buffer protocol on Array classes

> [Python] base64 support of bytes-like
> -------------------------------------
>
>                 Key: ARROW-5907
>                 URL: https://issues.apache.org/jira/browse/ARROW-5907
>             Project: Apache Arrow
>          Issue Type: New Feature
>          Components: Python
>    Affects Versions: 0.14.0
>            Reporter: Litchy
>            Priority: Major
>
> Currently pyarrow could not be encoded by base64:
> {code}
> t = numpy.arange(25, dtype=np.float64)
> a = pyarrow.array(t)
> s1 = base64.b64encode(t) # this works
> s2 = base64.b64encode(a)
> {code}
> gives "a bytes-like object is required not 'pyarrow.lib.DoubleArray'"
> Because it is not bytes-like
> A possible scenario could be if we want to push data(like ndarray) to Redis in Python and get it from other language like Java. Arrow could be used to interact between Python and Java using Array of Arrow.
> Adding this feature would support some in-queue and out-queue operations like Redis



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