Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-5907

[Python] base64 support of bytes-like

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 0.14.0
    • Fix Version/s: None
    • Component/s: Python
    • Labels:
      None

      Description

      Currently pyarrow could not be encoded by base64:

      t = numpy.arange(25, dtype=np.float64)
      a = pyarrow.array(t)
      
      s1 = base64.b64encode(t) # this works
      s2 = base64.b64encode(a)
      

      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

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              litchy Litchy
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: