You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2022/12/15 17:43:15 UTC
[GitHub] [spark] amaliujia commented on a diff in pull request #39068: [SPARK-41434][CONNECT][PYTHON] Initial `LambdaFunction` implementation
amaliujia commented on code in PR #39068:
URL: https://github.com/apache/spark/pull/39068#discussion_r1049963523
##########
connector/connect/common/src/main/protobuf/spark/connect/expressions.proto:
##########
@@ -167,4 +169,26 @@ message Expression {
// (Optional) Alias metadata expressed as a JSON map.
optional string metadata = 3;
}
+
+ message LambdaFunction {
+ // (Required) The lambda function.
+ Expression function = 1;
+
+ // (Required) Function arguments. Must not be empty.
+ //
+ // All arguments must be UnresolvedNamedLambdaVariables.
+ repeated Expression arguments = 2;
Review Comment:
If all arguments must be UnresolvedNamedLambdaVariables. why not define this as
`repeated UnresolvedNamedLambdaVariables arguments = 2`?
--
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-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org