yuchuanchen commented on code in PR #20616:
URL: https://github.com/apache/flink/pull/20616#discussion_r952082659
##########
flink-table/flink-table-common/src/main/java/org/apache/flink/table/data/columnar/vector/heap/HeapRowVector.java:
##########
@@ -46,4 +46,12 @@ public ColumnarRowData getRow(int i) {
columnarRowData.setRowId(i);
return columnarRowData;
}
+
+ @Override
+ public void reset() {
Review Comment:
There is no need to Override `HeapArrayVector` and `HeapMapVector`.
In `ArrayColumnReader.fillColumnVector()`, the child of `HeapArrayVector`
is always reset by calling `setChild()`

`MapColumnReader` actually readToVector by creating 2 new ArrayColumnReader
for each `readBatch()`.

That's why Map and Array types do not occur this problem.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]