replace_columns

Function replace_columns 

Source
fn replace_columns(
    exprs: Vec<Expr>,
    replace: &PlannedReplaceSelectItem,
) -> Result<Vec<Expr>>
Expand description

If there is a REPLACE statement in the projected expression in the form of “REPLACE (some_column_within_an_expr AS some_column)”, this function replaces that column with the given replace expression. Column name remains the same. Multiple REPLACEs are also possible with comma separations.