comath commented on issue #5153:
URL: https://github.com/apache/arrow-rs/issues/5153#issuecomment-1834676707

   I thought that was the case, but couldn't find a way to do that. The public 
function that reads [record 
batches](https://docs.rs/arrow-ipc/49.0.0/arrow_ipc/reader/fn.read_record_batch.html)
 in the IPC crate needs a lot of 
[boilerplate](https://github.com/apache/arrow-rs/blob/master/arrow-ipc/src/reader.rs#L550C1-L778)
 to adequately read an IPC file. The functions in the flight crate requires you 
go through a few hoops. The simplest pair is this 
[read](https://docs.rs/arrow-flight/latest/arrow_flight/utils/fn.batches_to_flight_data.html)
 and 
[write](https://docs.rs/arrow-flight/latest/arrow_flight/utils/fn.batches_to_flight_data.html)
 pair. 
   
   I implemented it using the IPC file reader code 
[here](https://github.com/comath/arrow-rs/blob/ipc-memmap-read/arrow-ipc/src/reader.rs#L1035).
  


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