Esempio n. 1
0
def test_symbol_projection_failures():
    t = TableSymbol('t', '10 * {name: string, amount: int}')
    with pytest.raises(ValueError):
        t.project(['name', 'id'])
    with pytest.raises(ValueError):
        t.project('id')
    with pytest.raises(ValueError):
        t.project(t.dshape)