Skip to content

Commit d494598

Browse files
committed
Fix tests now that the planner is better
1 parent 41fbd1d commit d494598

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sql/core/src/test/scala/org/apache/spark/sql/execution/PlannerSuite.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,16 +45,16 @@ class PlannerSuite extends FunSuite {
4545
assert(aggregations.size === 2)
4646
}
4747

48-
test("count distinct is not partially aggregated") {
48+
test("count distinct is partially aggregated") {
4949
val query = testData.groupBy('value)(CountDistinct('key :: Nil)).queryExecution.analyzed
5050
val planned = HashAggregation(query)
51-
assert(planned.isEmpty)
51+
assert(planned.nonEmpty)
5252
}
5353

54-
test("mixed aggregates are not partially aggregated") {
54+
test("mixed aggregates are partially aggregated") {
5555
val query =
5656
testData.groupBy('value)(Count('value), CountDistinct('key :: Nil)).queryExecution.analyzed
5757
val planned = HashAggregation(query)
58-
assert(planned.isEmpty)
58+
assert(planned.nonEmpty)
5959
}
6060
}

0 commit comments

Comments
 (0)