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

[C++][Python] Add a method to convert a Table to a RecordBatchReader

    XMLWordPrintableJSON

Details

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              sanjibansg Sanjiban Sengupta
              westonpace Weston Pace
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2h 50m
                  2h 50m