Skip to content

Commit 950dc73

Browse files
authored
add getter method for LogicalPlanBuilder.plan (#12038)
1 parent cd9237f commit 950dc73

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

datafusion/expr/src/logical_plan/builder.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,11 @@ impl LogicalPlanBuilder {
107107
self.plan.schema()
108108
}
109109

110+
/// Return the LogicalPlan of the plan build so far
111+
pub fn plan(&self) -> &LogicalPlan {
112+
&self.plan
113+
}
114+
110115
/// Create an empty relation.
111116
///
112117
/// `produce_one_row` set to true means this empty node needs to produce a placeholder row.

0 commit comments

Comments
 (0)