Skip to content

Commit

Permalink
Add test for left semi that can't be done with a hash join.
Browse files Browse the repository at this point in the history
  • Loading branch information
marmbrus committed Jun 7, 2014
1 parent 5ec6fa4 commit 035b73e
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,13 @@ class SQLQuerySuite extends QueryTest {
arrayData.map(d => (d.data, d.data(0), d.data(0) + d.data(1), d.data(1))).collect().toSeq)
}

test("left semi greater than predicate") {
checkAnswer(
sql("SELECT * FROM testData2 x LEFT SEMI JOIN testData2 y ON x.a >= y.a + 2"),
Seq((3,1), (3,2))
)
}

test("index into array of arrays") {
checkAnswer(
sql(
Expand Down

0 comments on commit 035b73e

Please sign in to comment.