From 430db0000285ace89317fc34f9da17e75fe3b4a4 Mon Sep 17 00:00:00 2001 From: Matt Green Date: Fri, 16 Aug 2024 14:00:21 -0700 Subject: [PATCH] add getter method for LogicalPlanBuilder.plan --- 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 2e53a682854ce..8241b5b469a85 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.