Skip to content

Commit 035b73e

Browse files
committed
Add test for left semi that can't be done with a hash join.
1 parent 5ec6fa4 commit 035b73e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

sql/core/src/test/scala/org/apache/spark/sql/SQLQuerySuite.scala

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,13 @@ class SQLQuerySuite extends QueryTest {
3434
arrayData.map(d => (d.data, d.data(0), d.data(0) + d.data(1), d.data(1))).collect().toSeq)
3535
}
3636

37+
test("left semi greater than predicate") {
38+
checkAnswer(
39+
sql("SELECT * FROM testData2 x LEFT SEMI JOIN testData2 y ON x.a >= y.a + 2"),
40+
Seq((3,1), (3,2))
41+
)
42+
}
43+
3744
test("index into array of arrays") {
3845
checkAnswer(
3946
sql(

0 commit comments

Comments
 (0)