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

Function test_table_join_asof_empty_by

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

Source from the content-addressed store, hash-verified

3377
3378@pytest.mark.dataset
3379def test_table_join_asof_empty_by():
3380 t1 = pa.table({
3381 "on": [1, 2, 3],
3382 })
3383
3384 t2 = pa.table({
3385 "colVals": ["Z", "B", "A"],
3386 "on": [2, 3, 4],
3387 })
3388
3389 result = t1.join_asof(
3390 t2, on="on", by=[], tolerance=1
3391 )
3392 assert result == pa.table({
3393 "on": [1, 2, 3],
3394 "colVals": ["Z", "Z", "B"],
3395 })
3396
3397
3398@pytest.mark.dataset

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected