mihailotim-db commented on code in PR #50345:
URL: https://github.com/apache/spark/pull/50345#discussion_r2007403138


##########
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:
   Updated. Think this is better but you might be able to come up with an even 
better one



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