Skip to content

Commit 22470d5

Browse files
committed
Avoid a unecessary allocation in has_same_children_properties
1 parent 3c8df77 commit 22470d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

datafusion/physical-plan/src/execution_plan.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1436,7 +1436,7 @@ pub fn has_same_children_properties(
14361436
old_children.len(),
14371437
"Wrong number of children"
14381438
);
1439-
for (lhs, rhs) in plan.children().iter().zip(children.iter()) {
1439+
for (lhs, rhs) in old_children.iter().zip(children.iter()) {
14401440
if !Arc::ptr_eq(lhs.properties(), rhs.properties()) {
14411441
return Ok(false);
14421442
}

0 commit comments

Comments
 (0)