Function ensure_batch_schema

Source
fn ensure_batch_schema<T>(
    batch: &mut HollowBatch<T>,
    shard_id: ShardId,
    schema_id: SchemaId,
)
where T: Timestamp + Lattice + Codec64,
Expand description

Ensure the given batch uses the given schema ID.

If the batch has no schema set, initialize it to the given one. If the batch has a schema set, assert that it matches the given one.