Function mz_sql::plan::plan_utils::maybe_rename_columns
source ยท pub fn maybe_rename_columns(
context: impl Display,
desc: &mut RelationDesc,
column_names: &[Ident],
) -> Result<(), PlanError>
Expand description
Renames the columns in desc
with the names in column_names
if
column_names
is non-empty.
Returns an error if the length of column_names
is greater than the arity
of desc
.