MCPcopy Create free account
hub / github.com/apache/arrow / test_joins_corner_cases

Function test_joins_corner_cases

python/pyarrow/tests/test_exec_plan.py:36–54  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

34
35
36def 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", [

Callers

nothing calls this directly

Calls 1

_perform_joinFunction · 0.90

Tested by

no test coverage detected