def test_selection_by_indexing():
    t = Symbol('t', 'var * {name: string, amount: int, id: int}')

    result = t[t['name'] == 'Alice']

    assert t.schema == result.schema
    assert 'Alice' in str(result)
dataset/ETHPy150Open blaze/blaze/blaze/expr/tests/test_symbol.py/test_selection_by_indexing/original