From 9d3a80042ef58261e30d7f7e107d4dcf270042be Mon Sep 17 00:00:00 2001 From: shuo Date: Fri, 22 Dec 2023 17:19:02 +0800 Subject: [PATCH] make with_schema's error more readable (#5228) --- arrow-array/src/record_batch.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ))); }