> I don't think there is currently a direct equivalent to > `FlightRecordBatchStream` in the arrow javascript library, but you should > be able to combine the data header + body and then read it using the > `fromIPC` functions since it's just the Arrow IPC format
The RecordBatchReader[1] _should_ support streaming. That being said, I haven't personally used it in that way. I've been doing some JS/Rust lately but utilizing FFI and not flight. We convert each batch into a complete IPC file (in an in-memory buffer) and then just use `tableFromIPC`. We do this here[2] (in case its at all useful). [1] https://arrow.apache.org/docs/js/classes/Arrow_dom.RecordBatchReader.html [2] https://github.com/lancedb/lancedb/blob/v0.4.13/nodejs/lancedb/query.ts#L22 On Wed, Mar 20, 2024 at 9:18 AM Matt Topol <m...@voltrondata.com.invalid> wrote: > I don't think there is currently a direct equivalent to > `FlightRecordBatchStream` in the arrow javascript library, but you should > be able to combine the data header + body and then read it using the > `fromIPC` functions since it's just the Arrow IPC format > > On Fri, Mar 15, 2024 at 5:39 AM Alexander Lerche Falk <a...@backstagecph.dk> > wrote: > > > Hey Arrow Dev, > > > > First of all: thanks for your great work. > > > > Is there a way to go from the FlightData structure in Javascript back to > > Record Batches? I have a small Rust application, implementing the > > FlightService, and streaming the data back through the do_get method. > > > > Maybe something equivalent to the FlightRecordBatchStream (method in > Rust) > > in the arrow javascript library? > > > > Thanks in advance and have a nice day. > > > > > > Alexander Falk > > > > Senior Software Architect > > > > +45 22 95 08 64 > > > > > > Backstage CPH > > >