coderfender commented on code in PR #21030:
URL: https://github.com/apache/datafusion/pull/21030#discussion_r2986077098
##########
datafusion/ffi/src/execution_plan.rs:
##########
@@ -112,35 +113,35 @@ unsafe extern "C" fn properties_fn_wrapper(
unsafe extern "C" fn children_fn_wrapper(
plan: &FFI_ExecutionPlan,
-) -> RVec<FFI_ExecutionPlan> {
- let runtime = plan.runtime();
- let plan = plan.inner();
-
- let children: Vec<_> = plan
- .children()
- .into_iter()
- .map(|child| FFI_ExecutionPlan::new(Arc::clone(child),
runtime.clone()))
- .collect();
+) -> SVec<FFI_ExecutionPlan> {
+ unsafe {
+ let private_data = plan.private_data as *const
ExecutionPlanPrivateData;
+ let plan = &(*private_data).plan;
+ let runtime = &(*private_data).runtime;
Review Comment:
Seems like a miss. Thank you for catching this.I fixed it in the latest
commit
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]