Skip to content

Commit

Permalink
Add more test.
Browse files Browse the repository at this point in the history
  • Loading branch information
viirya committed Sep 9, 2015
1 parent ff532ac commit 046a8cb
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions sql/core/src/test/scala/org/apache/spark/sql/SQLQuerySuite.scala
Original file line number Diff line number Diff line change
Expand Up @@ -1538,6 +1538,16 @@ class SQLQuerySuite extends QueryTest with SharedSQLContext {
|ORDER BY count(*)
""".stripMargin),
Row(2) :: Row(2) :: Row(2) :: Row(2) :: Nil)

checkAnswer(
sql(
"""
|SELECT a
|FROM orderByData
|GROUP BY a
|ORDER BY a, count(*), sum(b)
""".stripMargin),
Row("1") :: Row("2") :: Row("3") :: Row("4") :: Nil)
}

test("SPARK-7952: fix the equality check between boolean and numeric types") {
Expand Down

0 comments on commit 046a8cb

Please sign in to comment.