Create a SubqueryAlias to wrap a LogicalPlan.
(
plan: LogicalPlan,
alias: impl Into<TableReference>,
)
| 2050 | |
| 2051 | /// Create a SubqueryAlias to wrap a LogicalPlan. |
| 2052 | pub fn subquery_alias( |
| 2053 | plan: LogicalPlan, |
| 2054 | alias: impl Into<TableReference>, |
| 2055 | ) -> Result<LogicalPlan> { |
| 2056 | SubqueryAlias::try_new(Arc::new(plan), alias).map(LogicalPlan::SubqueryAlias) |
| 2057 | } |
| 2058 | |
| 2059 | /// Create a LogicalPlanBuilder representing a scan of a table with the provided name and schema. |
| 2060 | /// This is mostly used for testing and documentation. |
searching dependent graphs…