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)

Reply via email to