cloud-fan commented on code in PR #50345:
URL: https://github.com/apache/spark/pull/50345#discussion_r2007366871


##########
common/utils/src/main/resources/error/error-conditions.json:
##########
@@ -2954,6 +2954,11 @@
         "message" : [
           "A higher order function expects <expectedNumArgs> arguments, but 
got <actualNumArgs>."
         ]
+      },
+      "LAMBDA_AS_HIGHER_ORDER_FUNCTION_ARGUMENT" : {
+        "message" : [
+          "A lambda function can only be used as a transformation in higher 
order functions, not as an argument."

Review Comment:
   This is a bit confusing. Lambda function is also an argument of a high order 
function.



-- 
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

Reply via email to