MaxGekk commented on code in PR #39061:
URL: https://github.com/apache/spark/pull/39061#discussion_r1048703232


##########
core/src/main/resources/error/error-classes.json:
##########
@@ -496,6 +496,11 @@
     ],
     "sqlState" : "42000"
   },
+  "GROUPING_EXPRESSIONS_NOT_FOUND" : {
+    "message" : [
+      "Not found any GROUP BY expressions, and <sqlExpr> is not an aggregate 
function. Wrap <aggExprs> by windowing function(s) or wrap <sqlExpr> by 
`first()` (or `first_value()`) if you don't care which value you get."
+    ]
+  },

Review Comment:
   > My money is on forgetting the GROUP BY clause....
   
   Highly likely, you are right. Let me following your proposal.



-- 
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]

Reply via email to