We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac61a66 commit b08fd93Copy full SHA for b08fd93
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/Analyzer.scala
@@ -314,7 +314,7 @@ class Analyzer(
314
s"grouping columns (${groupByExprs.mkString(",")})")
315
}
316
case e @ Grouping(col: Expression) =>
317
- val idx = groupByExprs.indexWhere(e => resolver(e.toString, col.toString))
+ val idx = groupByExprs.indexWhere(x => resolver(x.toString, col.toString))
318
if (idx >= 0) {
319
Alias(Cast(BitwiseAnd(ShiftRight(gid, Literal(groupByExprs.length - 1 - idx)),
320
Literal(1)), ByteType), toPrettySQL(e))()
0 commit comments