Skip to content

Commit 0036696

Browse files
committed
Add regression test for SPARK-8782 (ORDER BY NULL)
1 parent 3a342de commit 0036696

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
@@ -1451,4 +1451,11 @@ class SQLQuerySuite extends QueryTest with BeforeAndAfterAll with SQLTestUtils {
14511451
checkAnswer(sql("SELECT a.b FROM t ORDER BY b[0].d"), Row(Seq(Row(1))))
14521452
}
14531453
}
1454+
1455+
test("SPARK-8782: ORDER BY NULL") {
1456+
withTempTable("t") {
1457+
Seq((1, 2), (1, 2)).toDF("a", "b").registerTempTable("t")
1458+
checkAnswer(sql("SELECT * FROM t ORDER BY NULL"), Seq(Row(1, 2), Row(1, 2)))
1459+
}
1460+
}
14541461
}

0 commit comments

Comments
 (0)