Skip to content

Commit

Permalink
update ExectionPlan::children impl for DatasetExec
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael-J-Ward committed Jun 12, 2024
1 parent f7b24df commit 2e17661
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/dataset_exec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ impl ExecutionPlan for DatasetExec {
self.schema.clone()
}

fn children(&self) -> Vec<Arc<dyn ExecutionPlan>> {
fn children(&self) -> Vec<&Arc<dyn ExecutionPlan>> {
// this is a leaf node and has no children
vec![]
}
Expand Down
2 changes: 1 addition & 1 deletion src/physical_plan.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ impl PyExecutionPlan {
self.plan
.children()
.iter()
.map(|p| p.to_owned().into())
.map(|p| p.clone().to_owned().into())
.collect()
}

Expand Down

0 comments on commit 2e17661

Please sign in to comment.