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

    s = selection(t, t['name'] == 'Alice')
    f = selection(t, t['id'] > t['amount'])
    p = t[100 > t['amount']]
    with pytest.raises(ValueError):
        selection(t, p)

    assert s.dshape == t.dshape
dataset/ETHPy150Open blaze/blaze/blaze/expr/tests/test_symbol.py/test_selection/swapped operands of `>`