Skip to content

Commit

Permalink
test(join): add test that colliding column names will get merged into…
Browse files Browse the repository at this point in the history
… one
  • Loading branch information
NickCrews committed Feb 3, 2025
1 parent 2a94704 commit 42c6645
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ibis/tests/expr/test_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -1786,6 +1786,9 @@ def test_join_lname_rname(how):
expr = method(right, rname="right_{name}", lname="left_{name}")
assert expr.columns == ("left_id", "first_name", "right_id", "last_name")

expr = method(right, rname="{name}_z", lname="{name}_z")
assert expr.columns == ("id_z", "first_name", "last_name")


def test_join_lname_rname_still_collide():
t1 = ibis.table({"id": "int64", "col1": "int64", "col2": "int64"})
Expand Down

0 comments on commit 42c6645

Please sign in to comment.