paleolimbot commented on issue #1893:
URL: https://github.com/apache/arrow-adbc/issues/1893#issuecomment-2450256980

   Can you use pyarrow's "stream from iterable of batches" mechanism to do this 
as well without the hack?
   
   ```python
   import pyarrow as pa
   
   def batches(original_reader, cursor):
       with cursor:
           yield from original reader
   
   cur = ...
   cur.execute()
   reader = cur.fetch_record_batch()
   wrapped_reader = pa.RecordBatchReader(baches(reader, cur), reader.schema)
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to