dianfu commented on a change in pull request #11374: [FLINK-16524][python]
Optimize the result of FlattenRowCoder and ArrowCoder to generator to eliminate
unnecessary function calls
URL: https://github.com/apache/flink/pull/11374#discussion_r392010635
##########
File path: flink-python/pyflink/fn_execution/coder_impl.py
##########
@@ -414,5 +446,28 @@ def create_array(s, t):
arrays = [create_array(cols[i], self._schema.types[i]) for i in
range(0, len(self._schema))]
return pa.RecordBatch.from_arrays(arrays, self._schema)
+ def _create_result(self, in_stream: create_InputStream) -> List:
+ self._resettable_io.set_input_bytes(in_stream.read_all(True))
+ # there is only arrow batch in the underlying input stream
Review comment:
Could you help to correct the comments here?
`there is only arrow batch` -> `there is only one arrow batch`
----------------------------------------------------------------
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