This is an automated email from the ASF dual-hosted git repository.
tustvold pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow-rs.git
The following commit(s) were added to refs/heads/master by this push:
new 9d3a80042e make with_schema's error more readable (#5228)
9d3a80042e is described below
commit 9d3a80042ef58261e30d7f7e107d4dcf270042be
Author: shuo <[email protected]>
AuthorDate: Fri Dec 22 17:19:02 2023 +0800
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 4e859fdfe7..dab6ae343a 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<Self, ArrowError> {
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
)));
}