hequn8128 commented on a change in pull request #10086: [FLINK-14584][python] 
Support complex data types in Python user-defined functions
URL: https://github.com/apache/flink/pull/10086#discussion_r354208814
 
 

 ##########
 File path: flink-python/pyflink/fn_execution/coder_impl.py
 ##########
 @@ -79,6 +80,93 @@ def __repr__(self):
         return 'RowCoderImpl[%s]' % ', '.join(str(c) for c in 
self._field_coders)
 
 
+class ArrayCoderImpl(StreamCoderImpl):
+
+    def __init__(self, elem_coder):
+        self._elem_coder = elem_coder
+
+    def encode_to_stream(self, value, out_stream, nested):
 
 Review comment:
   It is more efficient to use null mask to handle null values rather than 
adding a boolean value for every element. However, it is the behavior of Java. 

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