/// Return the merged schema for the chunks that are being
/// reorganized.
///
/// This is infallable because the schemas of chunks within a
/// partition are assumed to be compatible because that schema was
/// enforced as part of writing into the partition
Return the merged schema for the chunks that are being
reorganized.

This is infallable because the schemas of chunks within a
partition are assumed to be compatible because that schema was
enforced as part of writing into the partition
Return the merged schema for the chunks that are being reorganized . This is infallable because the schemas of chunks within a partition are assumed to be compatible because that schema was enforced as part of writing into the partition
fn merge_schemas(chunks: &[Arc<DbChunk>]) -> Arc<Schema> {
    let mut merger = SchemaMerger::new();
    for db_chunk in chunks {
        merger = merger
            .merge(&db_chunk.schema())
            .expect("schemas compatible");
    }
    Arc::new(merger.build())
}
fn merge_schemas ( chunks : & [ Arc < DbChunk > ] ) -> Arc < Schema > { let mut merger = SchemaMerger :: new ( ) ; for db_chunk in chunks { merger = merger . merge ( & db_chunk . schema ( ) ) . expect ( " " ) ; } Arc :: new ( merger . build ( ) ) }
Return the merged schema for the chunks that are being
reorganized.
Return the merged schema for the chunks that are being reorganized .
chunks
&[Arc<DbChunk>]