pub fn maybe_wrap_schema(schema: &SchemaRef) -> Result<SchemaRef>Expand description
Returns a copy of schema with native-histogram sub-field ids stamped,
for the parquet writer.
This is called on the schema handed to AsyncArrowWriter, not in
with_field_id, because the SST arrow schema is also the memtable’s
in-memory schema, whose Struct equality (PartialEq) is
metadata-sensitive — stamping there would break writes. The parquet writer
compares types with DataType::equals_datatype, which ignores field
metadata, so a stamped schema accepts an unstamped batch.