()
| 34 | |
| 35 | |
| 36 | def test_joins_corner_cases(): |
| 37 | t1 = pa.Table.from_pydict({ |
| 38 | "colA": [1, 2, 3, 4, 5, 6], |
| 39 | "col2": ["a", "b", "c", "d", "e", "f"] |
| 40 | }) |
| 41 | |
| 42 | t2 = pa.Table.from_pydict({ |
| 43 | "colB": [1, 2, 3, 4, 5], |
| 44 | "col3": ["A", "B", "C", "D", "E"] |
| 45 | }) |
| 46 | |
| 47 | with pytest.raises(pa.ArrowInvalid): |
| 48 | _perform_join("left outer", t1, "", t2, "") |
| 49 | |
| 50 | with pytest.raises(TypeError): |
| 51 | _perform_join("left outer", None, "colA", t2, "colB") |
| 52 | |
| 53 | with pytest.raises(ValueError): |
| 54 | _perform_join("super mario join", t1, "colA", t2, "colB") |
| 55 | |
| 56 | |
| 57 | @pytest.mark.parametrize("jointype,expected", [ |
nothing calls this directly
no test coverage detected