You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Weston Pace (Jira)" <ji...@apache.org> on 2022/03/02 04:25:00 UTC

[jira] [Created] (ARROW-15823) [Python] Add a method to convert a Table to a RecordBatchReader

Weston Pace created ARROW-15823:
-----------------------------------

             Summary: [Python] Add a method to convert a Table to a RecordBatchReader
                 Key: ARROW-15823
                 URL: https://issues.apache.org/jira/browse/ARROW-15823
             Project: Apache Arrow
          Issue Type: Improvement
          Components: Python
            Reporter: Weston Pace


The RecordBatchReader interface is a key abstraction for the C stream API.  There is no great way today to convert a Table (or an iterable of batches) to a RecordBatchReader.

DuckDb is currently doing this by wrapping the Table in an in-memory dataset and consuming it with a scanner but this has considerable overhead (especially if the Table has many batches).

Alternatively, we could add bridge methods to export a table to a stream but I think this approach would be simpler.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)