dianfu commented on a change in pull request #14844:
URL: https://github.com/apache/flink/pull/14844#discussion_r570771218
##########
File path:
flink-python/src/main/java/org/apache/flink/table/runtime/arrow/serializers/ArrowSerializer.java
##########
@@ -126,4 +126,15 @@ public void finishCurrentBatch() throws Exception {
arrowStreamWriter.writeBatch();
arrowWriter.reset();
}
+
+ public void resetReader(InputStream bais) throws IOException {
+ arrowReader = null;
+ arrowStreamReader.close();
+ arrowStreamReader = new ArrowStreamReader(bais, allocator);
+ }
+
+ public void resetWriter(OutputStream baos) throws IOException {
Review comment:
the parameter baos could be removed
##########
File path:
flink-python/src/main/java/org/apache/flink/table/runtime/arrow/serializers/ArrowSerializer.java
##########
@@ -126,4 +126,15 @@ public void finishCurrentBatch() throws Exception {
arrowStreamWriter.writeBatch();
arrowWriter.reset();
}
+
+ public void resetReader(InputStream bais) throws IOException {
Review comment:
the parameter bais could be removed.
----------------------------------------------------------------
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]