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

[R] Does R API for Apache Arrow has a tableFromIPC function ?

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Information Provided
    • None
    • None
    • None
    • None

    Description

      I'm building an API using python and flask. I want to return a dataframe from the API, i'm serializing the dataframe like so and sending it in the response:

      batch = pa.record_batch(df)
      sink = pa.BufferOutputStream()
      with pa.ipc.new_stream(sink, batch.schema) as writer:
      writer.write_batch(batch)
      pybytes = sink.getvalue().to_pybytes()
      

      Is it possible to read it with R ? If so can you provide a code snippet.

      Best,
      Roy

      Attachments

        Activity

          People

            wjones127 Will Jones
            wjones127 Will Jones
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: