-
- Downloads
[SPARK-13087][SQL] Fix group by function for sort based aggregation
It is not valid to call `toAttribute` on a `NamedExpression` unless we know for sure that the child produced that `NamedExpression`. The current code worked fine when the grouping expressions were simple, but when they were a derived value this blew up at execution time. Author: Michael Armbrust <michael@databricks.com> Closes #11013 from marmbrus/groupByFunction-master.
Showing
- sql/core/src/main/scala/org/apache/spark/sql/execution/aggregate/utils.scala 2 additions, 3 deletions...cala/org/apache/spark/sql/execution/aggregate/utils.scala
- sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/AggregationQuerySuite.scala 8 additions, 0 deletions...ache/spark/sql/hive/execution/AggregationQuerySuite.scala
Please register or sign in to comment