fn data_batch_to_batch( metadata: &RegionMetadataRef, projection: &HashSet<ColumnId>, key: Option<&[u8]>, data_batch: DataBatch<'_>, ) -> Result<Batch>
Converts a DataBatch to a Batch.