pub(crate) fn write_arrow_to_bytes<W: Write>( writer: &mut W, batch: &RecordBatch, ) -> Result<(), CodecError>
Helper function that serializes given arrow schema and record batch into bytes using Arrow IPC format.