waynexia commented on code in PR #2713:
URL: https://github.com/apache/arrow-datafusion/pull/2713#discussion_r894549545


##########
datafusion/core/src/physical_plan/planner.rs:
##########
@@ -292,10 +293,10 @@ pub trait ExtensionPlanner {
     /// Returns `None` when the planner does not know how to plan the
     /// `node` and wants to delegate the planning to another
     /// [`ExtensionPlanner`].
-    fn plan_extension(
+    async fn plan_extension(
         &self,
-        planner: &dyn PhysicalPlanner,
-        node: &dyn UserDefinedLogicalNode,
+        planner: &(dyn PhysicalPlanner + Send + Sync),

Review Comment:
   Done. I also add `Send` and `Sync` bounds to `UserDefinedLogicalNode`.
   
   I think these are also "API change"?



##########
datafusion/core/src/physical_plan/planner.rs:
##########
@@ -292,10 +293,10 @@ pub trait ExtensionPlanner {
     /// Returns `None` when the planner does not know how to plan the
     /// `node` and wants to delegate the planning to another
     /// [`ExtensionPlanner`].
-    fn plan_extension(
+    async fn plan_extension(
         &self,
-        planner: &dyn PhysicalPlanner,
-        node: &dyn UserDefinedLogicalNode,
+        planner: &(dyn PhysicalPlanner + Send + Sync),
+        node: Arc<dyn UserDefinedLogicalNode + Send + Sync>,

Review Comment:
   nice catch! fixed



-- 
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]

Reply via email to