Skip to content

Commit

Permalink
Add one more case.
Browse files Browse the repository at this point in the history
  • Loading branch information
viirya committed Apr 29, 2019
1 parent 351cf1e commit 6d13656
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -778,5 +778,8 @@ class DataFrameAggregateSuite extends QueryTest with SharedSQLContext {
val distinctCount1 = df.select(expr("count(distinct(*))"))
val distinctCount2 = df.select(countDistinct("*"))
checkAnswer(distinctCount1, distinctCount2)

val countAndDistinct = df.select(count("*"), countDistinct("*"))
checkAnswer(countAndDistinct, Row(100000, 100))
}
}

0 comments on commit 6d13656

Please sign in to comment.