dianfu commented on a change in pull request #9858: [FLINK-14208][python] 
Optimize Python UDFs with parameters of constant values
URL: https://github.com/apache/flink/pull/9858#discussion_r332886468
 
 

 ##########
 File path: flink-python/pyflink/proto/flink-fn-execution.proto
 ##########
 @@ -26,10 +26,15 @@ option java_outer_classname = "FlinkFnApi";
 // User-defined function definition. It supports chaining functions, that's, 
the execution
 // result of one user-defined function as the input of another user-defined 
function.
 message UserDefinedFunction {
+  message Constant {
+    bytes value = 1;
+  }
+
   message Input {
     oneof input {
       UserDefinedFunction udf = 1;
       int32 inputOffset = 2;
+      Constant inputConstant = 3;
 
 Review comment:
   What about `bytes inputConstant = 3;`? Then we can avoid define message 
Constant.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to