davlee1972 opened a new issue, #1893:
URL: https://github.com/apache/arrow-adbc/issues/1893

   ### What feature or improvement would you like to see?
   
   When returning back a record batch reader, the associated cursor has to be 
kept alive until the record batch reader is consumed.
   
   This forces whatever code that creates the cursor to also consume the record 
batch reader before the cursor is closed or out of scope.
   
   Something like the code below won't work because the data stream would be 
closed before the record batch reader is used.
   
   ```
   def get_batch_reader():
       cursor = self.conn.cursor()
       cursor.execute("select abc from xyz")
       return cursor.fetch_record_batch()
   ```
   
   fetch_record_batch() needs to create a copy of a cursor and keep it alive 
until it is consume or goes out of scope.


-- 
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