Function mz_expr::relation::canonicalize::replace_subexpr_and_reduce
source ยท fn replace_subexpr_and_reduce(
predicate: &mut MirScalarExpr,
replace_if_equal_to: &MirScalarExpr,
replace_with: &MirScalarExpr,
column_types: &[ColumnType],
) -> bool
Expand description
Replace any matching subexpressions in predicate
, and if predicate
has
changed, reduce it. Return whether predicate
has changed.