

@pytest.mark.xfail(raises=AssertionError, reason="Can't split on expressions requiring branching")
def test_elemwise_with_multiple_paths():
    s = symbol('s', 'var * {x: int, y: int, z: int}')
    expr = (s.x.sum() / s.y.sum())
    ((chunk, chunk_expr), (agg, agg_expr)) = split(s, agg)
    assert chunk_expr.isidentical(summary(x=chunk.x.sum(), y=chunk.y.sum()))
    assert agg_expr.isidentical((agg.x / agg.y))

dataset/ETHPy150Open blaze/blaze/blaze/expr/tests/test_split.py test_elemwise_with_multiple_paths/VarMisuse@72/124 `expr`->`agg`