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


##########
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 good point, I was thinking of removing the second part of the 
message. Do yuo have a preference/suggestion as to what the message should be?



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