Skip to content

Commit ab34cac

Browse files
committed
lint
1 parent 4c1b0e2 commit ab34cac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

datafusion/physical-optimizer/src/filter_pushdown.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@ fn push_down_filters(
508508

509509
// Add the filtered parent predicates to all_predicates
510510
for filter in parent_filters_for_child.items() {
511-
all_predicates.push(filter.predicate.clone());
511+
all_predicates.push(Arc::clone(&filter.predicate));
512512
}
513513

514514
let num_parent_filters = all_predicates.len() - num_self_filters;
@@ -572,7 +572,7 @@ fn push_down_filters(
572572
// Update parent_filter_pushdown_supports with the mapped results
573573
// mapped_parent_results already has the results at their original indices
574574
for (idx, support) in parent_filter_pushdown_supports.iter_mut().enumerate() {
575-
support[child_idx] = mapped_parent_results[idx].clone();
575+
support[child_idx] = mapped_parent_results[idx];
576576
}
577577
}
578578

0 commit comments

Comments
 (0)