reassign_expr_columns

Function reassign_expr_columns 

Source
pub fn reassign_expr_columns(
    expr: Arc<dyn PhysicalExpr>,
    schema: &Schema,
) -> Result<Arc<dyn PhysicalExpr>>
Expand description

Re-assign indices of Columns within the given PhysicalExpr according to the provided Schema.

This can be useful when attempting to map an expression onto a different schema.

ยงErrors

This function will return an error if any column in the expression cannot be found in the provided schema.