HyukjinKwon commented on code in PR #50345:
URL: https://github.com/apache/spark/pull/50345#discussion_r2009442556
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/CheckAnalysis.scala:
##########
@@ -345,6 +345,15 @@ trait CheckAnalysis extends LookupCatalog with
QueryErrorsBase with PlanToString
case operator: LogicalPlan =>
operator transformExpressionsDown {
+ case hof: HigherOrderFunction if hof.arguments.exists {
+ case LambdaFunction(_, _, _) => true
+ case _ => false
+ } =>
+ throw new AnalysisException(
+ errorClass =
s"INVALID_LAMBDA_FUNCTION_CALL.LAMBDA_AS_HIGHER_ORDER_FUNCTION_ARGUMENT",
Review Comment:
```suggestion
errorClass =
"INVALID_LAMBDA_FUNCTION_CALL.LAMBDA_AS_HIGHER_ORDER_FUNCTION_ARGUMENT",
```
--
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]