Hi Rares,
Le 17/11/2020 à 03:34, Rares Vernica a écrit : > > I'm using an arrow::io::BufferReader and > arrow::ipc::RecordBatchStreamReader to read an arrow::RecordBatch from a > file. There is only one batc in the file so I do a single > RecordBatchStreamReader::ReadNext call. I store the populated RecordBatch > in memory for reuse (cache). The memory buffer wrapped by the BufferReader > is reallocated. What do you mean with "reallocated"? As long as you keep a strong reference to a RecordBatch (through shared_ptr), the buffers are kept intact. This is an intended consequence of the Buffer design and the pervasive use of shared_ptr. Regards Antoine.
