fn build_cached_batch_slice( batches: Vec<RecordBatch>, slice_lengths: Vec<usize>, ) -> Result<CachedBatchSlice>