Function sql::plan::plan_utils::maybe_rename_columns [−][src]
pub fn maybe_rename_columns(
context: impl Display,
desc: RelationDesc,
column_names: &[Ident]
) -> Result<RelationDesc, Error>
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 not either zero or the
arity of desc
.