You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Mandukhai-Alimaa (via GitHub)" <gi...@apache.org> on 2025/07/18 01:30:44 UTC

[I] Go: Add helper function to simplify opening Arrow IPC files [arrow-adbc]

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: issues-unsubscribe@arrow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Go: Add helper function to simplify opening Arrow IPC files [arrow-adbc]

Posted by "zeroshade (via GitHub)" <gi...@apache.org>.
zeroshade commented on issue #3173:
URL: https://github.com/apache/arrow-adbc/issues/3173#issuecomment-3086540669

   Yea, my original comment on the example was meant to add a helper to the example to make the code more succinct. I didn't mean to add a public helper here in the ADBC library 😄 


-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Go: Add helper function to simplify opening Arrow IPC files [arrow-adbc]

Posted by "lidavidm (via GitHub)" <gi...@apache.org>.
lidavidm commented on issue #3173:
URL: https://github.com/apache/arrow-adbc/issues/3173#issuecomment-3086513028

   I don't think opening an IPC file has anything to do with ADBC, though. It's too general.


-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Go: Add helper function to simplify opening Arrow IPC files [arrow-adbc]

Posted by "lidavidm (via GitHub)" <gi...@apache.org>.
lidavidm commented on issue #3173:
URL: https://github.com/apache/arrow-adbc/issues/3173#issuecomment-3086470080

   (I can transfer the issue if so)


-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Go: Add helper function to simplify opening Arrow IPC files [arrow-adbc]

Posted by "Mandukhai-Alimaa (via GitHub)" <gi...@apache.org>.
Mandukhai-Alimaa closed issue #3173: Go: Add helper function to simplify opening Arrow IPC files
URL: https://github.com/apache/arrow-adbc/issues/3173


-- 
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: issues-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Go: Add helper function to simplify opening Arrow IPC files [arrow-adbc]

Posted by "Mandukhai-Alimaa (via GitHub)" <gi...@apache.org>.
Mandukhai-Alimaa commented on issue #3173:
URL: https://github.com/apache/arrow-adbc/issues/3173#issuecomment-3086500695

   This helper is similar to the IngestStream helper, so I think it should be placed alongside it. Please let me know if you see any reason to locate it elsewhere. This issue originated here: 
   
   https://github.com/columnar-tech/adbc-examples/pull/5#discussion_r2214262123


-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Go: Add helper function to simplify opening Arrow IPC files [arrow-adbc]

Posted by "lidavidm (via GitHub)" <gi...@apache.org>.
lidavidm commented on issue #3173:
URL: https://github.com/apache/arrow-adbc/issues/3173#issuecomment-3086469805

   Did you mean to put this here or in arrow-go?


-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Go: Add helper function to simplify opening Arrow IPC files [arrow-adbc]

Posted by "Mandukhai-Alimaa (via GitHub)" <gi...@apache.org>.
Mandukhai-Alimaa commented on issue #3173:
URL: https://github.com/apache/arrow-adbc/issues/3173#issuecomment-3086554659

   Oh, I see. I misunderstood it 😅. I will close the issue.


-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Go: Add helper function to simplify opening Arrow IPC files [arrow-adbc]

Posted by "Mandukhai-Alimaa (via GitHub)" <gi...@apache.org>.
Mandukhai-Alimaa commented on issue #3173:
URL: https://github.com/apache/arrow-adbc/issues/3173#issuecomment-3086274878

   take


-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org