This is an automated email from the ASF dual-hosted git repository.

alamb pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/datafusion.git


The following commit(s) were added to refs/heads/main by this push:
     new 950dc73c7f add getter method for LogicalPlanBuilder.plan (#12038)
950dc73c7f is described below

commit 950dc73c7f763ae8dc56c0a99de864dff444f22b
Author: Matt Green <[email protected]>
AuthorDate: Sun Aug 18 03:49:43 2024 -0700

    add getter method for LogicalPlanBuilder.plan (#12038)
---
 datafusion/expr/src/logical_plan/builder.rs | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/datafusion/expr/src/logical_plan/builder.rs 
b/datafusion/expr/src/logical_plan/builder.rs
index f9769560b2..aa28c1c192 100644
--- a/datafusion/expr/src/logical_plan/builder.rs
+++ b/datafusion/expr/src/logical_plan/builder.rs
@@ -107,6 +107,11 @@ impl LogicalPlanBuilder {
         self.plan.schema()
     }
 
+    /// Return the LogicalPlan of the plan build so far
+    pub fn plan(&self) -> &LogicalPlan {
+        &self.plan
+    }
+
     /// Create an empty relation.
     ///
     /// `produce_one_row` set to true means this empty node needs to produce a 
placeholder row.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to