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 2020/08/21 21:29:33 UTC

[GitHub] [arrow] alamb commented on a change in pull request #8020: ARROW-9821: [Rust][DataFusion] Prototype design for UserDefined Logical Plan Nodes NOT FOR MERGING

alamb commented on a change in pull request #8020:
URL: https://github.com/apache/arrow/pull/8020#discussion_r474978077



##########
File path: rust/datafusion/src/lp.rs
##########
@@ -0,0 +1,89 @@
+//! Prototype LogicalPlanNode interface for defining extensions for LogicalPlan nodes
+
+use crate::error::Result;
+use crate::{
+    execution::{context::ExecutionContextState, physical_plan::ExecutionPlan},
+    logicalplan::{Expr, LogicalPlan},
+};
+use arrow::datatypes::Schema;
+use core::fmt;
+use std::{
+    collections::HashSet,
+    sync::{Arc, Mutex},
+};
+
+/// This defines the interface for (currently user defined)
+/// LogicalPLan nodes that can be used to extend the logic
+pub trait LogicalPlanNode {

Review comment:
       This is the proposed trait that all LogicalPlan nodes would implement




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

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