MCPcopy Create free account
hub / github.com/apache/datafusion / subquery_alias

Function subquery_alias

datafusion/expr/src/logical_plan/builder.rs:2052–2057  ·  view source on GitHub ↗

Create a SubqueryAlias to wrap a LogicalPlan.

(
    plan: LogicalPlan,
    alias: impl Into<TableReference>,
)

Source from the content-addressed store, hash-verified

2050
2051/// Create a SubqueryAlias to wrap a LogicalPlan.
2052pub 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.

Calls 2

newFunction · 0.85
mapMethod · 0.45

Used in the wild real call sites across dependent graphs

searching dependent graphs…