-
- Downloads
[SPARK-20725][SQL] partial aggregate should behave correctly for sameResult
## What changes were proposed in this pull request? For aggregate function with `PartialMerge` or `Final` mode, the input is aggregate buffers instead of the actual children expressions. So the actual children expressions won't affect the result, we should normalize the expr id for them. ## How was this patch tested? a new regression test Author: Wenchen Fan <wenchen@databricks.com> Closes #17964 from cloud-fan/tmp.
Showing
- sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/aggregate/interfaces.scala 12 additions, 2 deletions...spark/sql/catalyst/expressions/aggregate/interfaces.scala
- sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/plans/QueryPlan.scala 2 additions, 2 deletions...scala/org/apache/spark/sql/catalyst/plans/QueryPlan.scala
- sql/core/src/test/scala/org/apache/spark/sql/execution/SameResultSuite.scala 12 additions, 0 deletions...cala/org/apache/spark/sql/execution/SameResultSuite.scala
Please register or sign in to comment