MaxGekk commented on code in PR #39061:
URL: https://github.com/apache/spark/pull/39061#discussion_r1048792097
##########
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:
@srielau I think this name `GROUPING_EXPRESSION_WITHOUT_GROUP_BY` might
confuse. How about `AGGREGATION_WITHOUT_GROUP_BY`?
--
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]