We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4a8d9bf commit 5f4e8caCopy full SHA for 5f4e8ca
1 file changed
tests/integration/test_join.py
@@ -107,6 +107,27 @@ def test_join_left_anti(c):
107
assert_eq(return_df, expected_df, check_index=False)
108
109
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
131
def test_join_right(c):
132
return_df = c.sql(
133
"""
0 commit comments