Skip to content

Commit

Permalink
add one more test
Browse files Browse the repository at this point in the history
  • Loading branch information
cloud-fan committed Mar 7, 2016
1 parent e037814 commit 9a66fbb
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,10 @@ class LogicalPlanToSQLSuite extends SQLBuilderTest with SQLTestUtils {
checkHiveQl("SELECT id FROM parquet_t0 DISTRIBUTE BY id SORT BY id")
}

test("SPARK-13720: sort by after having") {
checkHiveQl("SELECT COUNT(value) FROM parquet_t1 GROUP BY key HAVING MAX(key) > 0 SORT BY key")
}

test("distinct aggregation") {
checkHiveQl("SELECT COUNT(DISTINCT id) FROM parquet_t0")
}
Expand Down

0 comments on commit 9a66fbb

Please sign in to comment.