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

Function test_table_join_collisions

python/pyarrow/tests/test_table.py:3226–3246  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3224
3225@pytest.mark.acero
3226def test_table_join_collisions():
3227 t1 = pa.table({
3228 "colA": [1, 2, 6],
3229 "colB": [10, 20, 60],
3230 "colVals": ["a", "b", "f"]
3231 })
3232
3233 t2 = pa.table({
3234 "colA": [99, 2, 1],
3235 "colB": [99, 20, 10],
3236 "colVals": ["Z", "B", "A"]
3237 })
3238
3239 result = t1.join(t2, "colA", join_type="full outer")
3240 assert result.combine_chunks().sort_by("colA") == pa.table([
3241 [1, 2, 6, 99],
3242 [10, 20, 60, None],
3243 ["a", "b", "f", None],
3244 [10, 20, None, 99],
3245 ["A", "B", None, "Z"],
3246 ], names=["colA", "colB", "colVals", "colB", "colVals"])
3247
3248
3249@pytest.mark.acero

Callers

nothing calls this directly

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected