cloud-fan commented on code in PR #45929:
URL: https://github.com/apache/spark/pull/45929#discussion_r1555757796
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/ExprUtils.scala:
##########
@@ -168,7 +168,13 @@ object ExprUtils extends QueryErrorsBase {
a.failAnalysis(
errorClass = "MISSING_GROUP_BY",
messageParameters = Map.empty)
- case e: Attribute if !a.groupingExpressions.exists(_.semanticEquals(e))
=>
+ case e: Attribute if !a.groupingExpressions.exists(_.semanticEquals(e))
&&
+ !a.groupingExpressions.exists {
Review Comment:
why do we need this change?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]