pub fn map_expr_to_local(&self, mut expr: MirScalarExpr) -> MirScalarExpr {
        expr.visit_mut_post(&mut |e| {
            if let MirScalarExpr::Column(c) = e {
                *c -= self.prior_arities[self.input_relation[*c]];
            }
        });
        expr
    }
/// Takes an expression from the global context and creates a new version
/// where column references have been remapped to the local context.
/// Assumes that all columns in `expr` are from the same input.
Takes an expression from the global context and creates a new version
where column references have been remapped to the local context.
Assumes that all columns in `expr` are from the same input.
Takes an expression from the global context and creates a new version where column references have been remapped to the local context . Assumes that all columns in ` expr ` are from the same input .
pub fn map_expr_to_local(&self, mut expr: MirScalarExpr) -> MirScalarExpr {
        expr.visit_mut_post(&mut |e| {
            if let MirScalarExpr::Column(c) = e {
                *c -= self.prior_arities[self.input_relation[*c]];
            }
        });
        expr
    }
pub fn map_expr_to_local ( & self , mut expr : MirScalarExpr ) -> MirScalarExpr { expr . visit_mut_post ( & mut | e | { if let MirScalarExpr :: Column ( c ) = e { * c -= self . prior_arities [ self . input_relation [ * c ] ] ; } } ) ; expr }
Takes an expression from the global context and creates a new version
where column references have been remapped to the local context.
Takes an expression from the global context and creates a new version where column references have been remapped to the local context .
&self
expr
MirScalarExpr
&self
expr
MirScalarExpr