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: reviews-unsubscr...@spark.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org