def test_join():
    cities = np.array([('Alice', 'NYC'),
                       ('Alice', 'LA'),
                       ('Bob', 'Chicago')],
                      dtype=[('name', 'S7'), ('city', 'O')])

    c = symbol('cities', discover(cities))

    expr = join(t, c, 'name')
    result = compute(expr, {t: x, c: cities})
    assert into(list, result) in (b'Alice', 1, 100, 'LA')
dataset/ETHPy150Open blaze/blaze/blaze/compute/tests/test_numpy_compute.py/test_join/swapped operands of `in`