Skip to content

Commit

Permalink
make with_schema's error more readable (#5228)
Browse files Browse the repository at this point in the history
  • Loading branch information
shuoli84 committed Dec 22, 2023
1 parent 41fda0b commit 9d3a800
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arrow-array/src/record_batch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
)));
}
Expand Down

0 comments on commit 9d3a800

Please sign in to comment.