

def test_splittable_apply():

    def f(x):
        pass
    ((chunk, chunk_expr), (agg, agg_expr)) = split(t, t.amount.apply(f, 'var * int', splittable=True))
    assert agg_expr.isidentical(chunk.amount.apply(f, 'var * int', splittable=True))
    assert agg_expr.isidentical(agg)

dataset/ETHPy150Open blaze/blaze/blaze/expr/tests/test_split.py test_splittable_apply/VarMisuse@56/72 `chunk_expr`->`agg_expr`