MaxGekk commented on code in PR #41366:
URL: https://github.com/apache/spark/pull/41366#discussion_r1210045740
##########
core/src/main/resources/error/error-classes.json:
##########
@@ -1816,6 +1843,11 @@
],
"sqlState" : "42883"
},
+ "SCALAR_SUBQUERY_IS_IN_GROUP_BY_OR_AGGREGATE_FUNCTION" : {
+ "message" : [
+ "The correlated scalar subquery '<sqlExpr>' is neither present in GROUP
BY, nor in an aggregate function. Add it to GROUP BY using ordinal position or
wrap it in `first()` (or `first_value`) if you don't care which value you get."
Review Comment:
Please, remove quotes around <sqlExpr>:
```suggestion
"The correlated scalar subquery <sqlExpr> is neither present in GROUP
BY, nor in an aggregate function. Add it to GROUP BY using ordinal position or
wrap it in `first()` (or `first_value`) if you don't care which value you get."
```
--
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]