zoudan commented on a change in pull request #12542:
URL: https://github.com/apache/flink/pull/12542#discussion_r437335435



##########
File path: 
flink-table/flink-table-runtime-blink/src/main/java/org/apache/flink/table/data/util/DataFormatConverters.java
##########
@@ -1138,7 +1138,7 @@ private ArrayData toBinaryArray(T[] value) {
                                }
                        }
                        reuseWriter.complete();
-                       return reuseArray;
+                       return reuseArray.copy();

Review comment:
       thanks for reminding

##########
File path: 
flink-table/flink-table-runtime-blink/src/main/java/org/apache/flink/table/data/util/DataFormatConverters.java
##########
@@ -1138,7 +1138,7 @@ private ArrayData toBinaryArray(T[] value) {
                                }
                        }
                        reuseWriter.complete();
-                       return reuseArray;
+                       return reuseArray.copy();

Review comment:
       OK,I will add a test for this.




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


Reply via email to