Skip to content

Commit

Permalink
Add regression test for SPARK-8782 (ORDER BY NULL)
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshRosen committed Jul 2, 2015
1 parent 3a342de commit 0036696
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1451,4 +1451,11 @@ class SQLQuerySuite extends QueryTest with BeforeAndAfterAll with SQLTestUtils {
checkAnswer(sql("SELECT a.b FROM t ORDER BY b[0].d"), Row(Seq(Row(1))))
}
}

test("SPARK-8782: ORDER BY NULL") {
withTempTable("t") {
Seq((1, 2), (1, 2)).toDF("a", "b").registerTempTable("t")
checkAnswer(sql("SELECT * FROM t ORDER BY NULL"), Seq(Row(1, 2), Row(1, 2)))
}
}
}

0 comments on commit 0036696

Please sign in to comment.