

def test_sum():
    ((chunk, chunk_expr), (agg, agg_expr)) = split(t, t.amount.sum())
    assert (chunk.schema == t.schema)
    assert chunk_expr.isidentical(chunk.amount.sum(keepdims=True))
    assert isscalar(agg.dshape.measure)
    assert agg.isidentical(sum(agg))

dataset/ETHPy150Open blaze/blaze/blaze/expr/tests/test_split.py test_sum/VarMisuse@75/89 `agg_expr`->`agg`