Skip to content

Commit

Permalink
add doc for with_alias
Browse files Browse the repository at this point in the history
  • Loading branch information
jackwener committed Nov 26, 2022
1 parent 133d5ee commit d3f7554
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions datafusion/expr/src/logical_plan/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -989,6 +989,7 @@ pub fn project_with_alias(
}
}

/// Create a SubqueryAlias to wrap a LogicalPlan.
pub fn with_alias(plan: LogicalPlan, alias: String) -> LogicalPlan {
let plan_schema = &**plan.schema();
let schema = (plan_schema.clone()).replace_qualifier(alias.as_str());
Expand Down

0 comments on commit d3f7554

Please sign in to comment.