Skip to content
Prev Previous commit
Next Next commit
Fix bug in GeneratedAggregate
  • Loading branch information
chenghao-intel committed Jul 2, 2015
commit fcb9aedbdea4486e60a5f7521ab2515998c402ed
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,12 @@ case class GeneratedAggregate(
child: SparkPlan)
extends UnaryNode {

override def outputPartitioning: Partitioning = if (partial) {
child.outputPartitioning
} else {
HashPartition(groupingExpressions)
}

override def requiredChildDistribution: Seq[Distribution] =
if (partial) {
UnspecifiedDistribution :: Nil
Expand Down