From b1925e5feb83228db8ed8502306368a2d979e56b Mon Sep 17 00:00:00 2001 From: gatorsmile Date: Thu, 3 Mar 2016 10:12:11 -0800 Subject: [PATCH] cleaned the comment. --- .../src/main/scala/org/apache/spark/sql/hive/SQLBuilder.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sql/hive/src/main/scala/org/apache/spark/sql/hive/SQLBuilder.scala b/sql/hive/src/main/scala/org/apache/spark/sql/hive/SQLBuilder.scala index b41ca4faf85a8..1f1776d3a6ee8 100644 --- a/sql/hive/src/main/scala/org/apache/spark/sql/hive/SQLBuilder.scala +++ b/sql/hive/src/main/scala/org/apache/spark/sql/hive/SQLBuilder.scala @@ -259,9 +259,9 @@ class SQLBuilder(logicalPlan: LogicalPlan, sqlContext: SQLContext) extends Loggi val groupingSet = expand.projections.map { project => // Assumption: expand.projections are composed of - // 1) the original output (project.child.output), + // 1) the original output (Project's child.output), // 2) group by attributes(or null literal) - // 3) gid, which is always the last one in each project + // 3) gid, which is always the last one in each project in Expand project.dropRight(1).collect { case attr: Attribute if groupByAttrMap.contains(attr) => groupByAttrMap(attr) }