

@dispatch(Expr, ClauseElement)
def optimize(expr, _):
    collected = broadcast_collect(expr, no_recurse=Selection)
    return reduce((lambda expr, term: _._subs({
        term: _subexpr_optimize(term),
    })), collected._subterms(), collected)

dataset/ETHPy150Open blaze/blaze/blaze/compute/sql.py optimize/VarMisuse@40/47 `expr`->`_`