Hello, I use this code to serialize an arrow::Table to an arrow::Buffer.
std::shared_ptr<arrow::Buffer> to_wire_format(const arrow::Table &table) {
auto buffer = arrow::io::BufferOutputStream::Create().ValueOrDie();
auto writer = arrow::ipc::MakeStreamWriter(buffer,
table.schema()).ValueOrDie();
validate_status(writer->WriteTable(table));
validate_status(writer->Close());
return buffer->Finish().ValueOrDie();
}
How do I reconstruct an arrow::Table from an arrow::Buffer?
Thanks,
Hung
