

def test_agg_shape_in_tabular_case_with_explicit_chunk():
    t = symbol('t', '1000 * {name: string, amount: int, id: int}')
    c = symbol('chunk', (100 * t.schema))
    expr = by(t.name, total=expr.amount.sum())
    ((chunk, chunk_expr), (agg, agg_expr)) = split(t, expr, chunk=c)
    assert (agg.dshape == dshape('var * {name: string, total: int64}'))

dataset/ETHPy150Open blaze/blaze/blaze/expr/tests/test_split.py test_agg_shape_in_tabular_case_with_explicit_chunk/VarMisuse@43/79 `t`->`expr`