itholic commented on code in PR #38576:
URL: https://github.com/apache/spark/pull/38576#discussion_r1046656452
##########
core/src/main/resources/error/error-classes.json:
##########
@@ -1443,6 +1443,11 @@
"A correlated outer name reference within a subquery expression body
was not found in the enclosing query: <value>"
]
},
+ "CORRELATED_REFERENCE" : {
+ "message" : [
+ "Expressions <sqlExprs> referencing the outer query are not
supported outside of WHERE/HAVING clauses."
Review Comment:
Yes, it really returns a set of expressions separated by `,`
In `CheckAnalysis.scala`, we make the returning `sqlExprs`:
```scala
messageParameters = Map("sqlExprs" -> exprs.map(toSQLExpr).mkString(",")))
```
--
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]