pub(super) fn inject_column_aliases(
projection: &Projection,
aliases: impl IntoIterator<Item = Ident>,
) -> LogicalPlanExpand description
Injects column aliases into the projection of a logical plan by wrapping expressions
with Expr::Alias using the provided list of aliases.
Example:
SELECT col1, col2 FROM tablewith aliases["alias_1", "some_alias_2"]will be transformed toSELECT col1 AS alias_1, col2 AS some_alias_2 FROM table