Function mz_expr::memoize_expr
source ยท pub fn memoize_expr(
expr: &mut MirScalarExpr,
memoized_parts: &mut Vec<MirScalarExpr>,
input_arity: usize,
)
Expand description
Recursively memoize parts of expr
, storing those parts in memoized_parts
.
A part of expr
that is memoized is replaced by a reference to column
(input_arity + pos)
, where pos
is the position of the memoized part in
memoized_parts
, and input_arity
is the arity of the input that expr
refers to.