shuiqiangchen commented on a change in pull request #13611:
URL: https://github.com/apache/flink/pull/13611#discussion_r504657426



##########
File path: flink-python/pyflink/fn_execution/beam/beam_operations_fast.pyx
##########
@@ -185,23 +187,36 @@ cdef class 
DataStreamStatelessFunctionOperation(BeamStatelessFunctionOperation):
         super(DataStreamStatelessFunctionOperation, self).__init__(name, spec, 
counter_factory,
                                                                    sampler, 
consumers)
 
-    def generate_func(self, udfs):
-        func = operation_utils.extract_data_stream_stateless_funcs(udfs)
-        return func, []
+    def open_func(self):
+        for user_defined_func in self.user_defined_funcs:
+            runtime_context = RuntimeContext(

Review comment:
       Can we reuse the runtime_context by creating it outside of the for loop?




----------------------------------------------------------------
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:
us...@infra.apache.org


Reply via email to