Skip to content

Commit 5f4e8ca

Browse files
author
Chris Jarrett
committed
tests/
1 parent 4a8d9bf commit 5f4e8ca

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

tests/integration/test_join.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,27 @@ def test_join_left_anti(c):
107107
assert_eq(return_df, expected_df, check_index=False)
108108

109109

110+
def test_join_left_semi(c):
111+
return_df = c.sql(
112+
"""
113+
SELECT lhs.user_id, lhs.c
114+
FROM user_table_2 AS lhs
115+
LEFT SEMI JOIN user_table_1 AS rhs
116+
ON lhs.user_id = rhs.user_id
117+
"""
118+
)
119+
expected_df = pd.DataFrame(
120+
{
121+
# That is strange. Unfortunately, it seems dask fills in the
122+
# missing rows with NaN, not with NA...
123+
"user_id": [1, 1, 2],
124+
"c": [1, 2, 3],
125+
}
126+
)
127+
128+
assert_eq(return_df, expected_df, check_index=False)
129+
130+
110131
def test_join_right(c):
111132
return_df = c.sql(
112133
"""

0 commit comments

Comments
 (0)