Skip to content

Commit 1ebbb59

Browse files
update the comment
1 parent 827873f commit 1ebbb59

File tree

1 file changed

+2
-2
lines changed
  • sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis

1 file changed

+2
-2
lines changed

sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/Analyzer.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,9 +209,9 @@ class Analyzer(
209209
// find all of the non-attribute expressions in the GROUP BY keys
210210
val nonAttributeGroupByExpressions = new ArrayBuffer[Alias]()
211211

212-
// The pair of (the non-attributes expression, associated attribute (alias))
212+
// The pair of (the original GROUP BY key, associated attribute)
213213
val groupByExprPairs = x.groupByExprs.map(_ match {
214-
case e: NamedExpression => (e, e)
214+
case e: NamedExpression => (e, e.toAttribute)
215215
case other => {
216216
val alias = Alias(other, other.toString)()
217217
nonAttributeGroupByExpressions += alias // add the non-attributes expression alias

0 commit comments

Comments
 (0)