Skip to content

Commit 2e17661

Browse files
update ExectionPlan::children impl for DatasetExec
Ref apache/datafusion#10543
1 parent f7b24df commit 2e17661

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/dataset_exec.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ impl ExecutionPlan for DatasetExec {
164164
self.schema.clone()
165165
}
166166

167-
fn children(&self) -> Vec<Arc<dyn ExecutionPlan>> {
167+
fn children(&self) -> Vec<&Arc<dyn ExecutionPlan>> {
168168
// this is a leaf node and has no children
169169
vec![]
170170
}

src/physical_plan.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ impl PyExecutionPlan {
4040
self.plan
4141
.children()
4242
.iter()
43-
.map(|p| p.to_owned().into())
43+
.map(|p| p.clone().to_owned().into())
4444
.collect()
4545
}
4646

0 commit comments

Comments
 (0)