You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2022/06/10 13:47:37 UTC

[GitHub] [arrow-datafusion] waynexia commented on a diff in pull request #2713: feat: async extension planner

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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org