diff --git a/arrow-array/src/record_batch.rs b/arrow-array/src/record_batch.rs index 4e859fdfe7ea..dab6ae343a77 100644 --- a/arrow-array/src/record_batch.rs +++ b/arrow-array/src/record_batch.rs @@ -219,7 +219,7 @@ impl RecordBatch { pub fn with_schema(self, schema: SchemaRef) -> Result { if !schema.contains(self.schema.as_ref()) { return Err(ArrowError::SchemaError(format!( - "{schema} is not a superset of {}", + "target schema is not superset of current schema target={schema} current={}", self.schema ))); }