Mandukhai-Alimaa opened a new issue, #3173:
URL: https://github.com/apache/arrow-adbc/issues/3173

   ### What feature or improvement would you like to see?
   
   Problem
    if the user needs to read an Arrow IPC file, user must manually:
   
   - Call os.Open(path)
   - Pass the file into ipc.NewReader(f)
   - Handle errors for both steps
   - Remember to defer f.Close() and defer reader.Release()
   - This boilerplate clutters examples and adds room for mistakes in error 
handling or resource cleanup.
   
   Proposed Solution
   Introduce a small helper function, e.g. openArrowReader(path string) 
(*ipc.Reader, func() error, error), which:
   
   - Opens the file at the given path
   - Constructs an ipc.Reader
   - Returns a cleanup callback that closes both the file and the reader
   - Wraps all errors with context


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