Skip to content

Commit 76aec5b

Browse files
committed
fix failures
1 parent c343b93 commit 76aec5b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

datafusion/physical-expr-adapter/src/schema_rewriter.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@ impl<'a> DefaultPhysicalExprAdapterRewriter<'a> {
525525
/// ).unwrap();
526526
///
527527
/// // Adapt the batch to match target schema
528-
/// let adapted = adapter.adapt_batch(source_batch).unwrap();
528+
/// let adapted = adapter.adapt_batch(&source_batch).unwrap();
529529
///
530530
/// assert_eq!(adapted.num_columns(), 3);
531531
/// assert_eq!(adapted.column(0).data_type(), &DataType::Utf8); // name
@@ -576,9 +576,7 @@ impl BatchAdapterFactory {
576576
let simplifier = PhysicalExprSimplifier::new(&self.target_schema);
577577

578578
let projection = ProjectionExprs::from_indices(
579-
&(0..self.target_schema.fields().len())
580-
.map(|i| i as usize)
581-
.collect_vec(),
579+
&(0..self.target_schema.fields().len()).collect_vec(),
582580
&self.target_schema,
583581
);
584582

0 commit comments

Comments
 (0)