shizy818 commented on code in PR #14616:
URL: https://github.com/apache/iotdb/pull/14616#discussion_r1909668779


##########
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/utils/datastructure/TVList.java:
##########
@@ -281,14 +430,20 @@ protected void cloneAs(TVList cloneList) {
       cloneList.timestamps.add(cloneTime(timestampArray));
     }
     cloneList.rowCount = rowCount;
+    cloneList.seqRowCount = seqRowCount;
     cloneList.sorted = sorted;
     cloneList.maxTime = maxTime;
+    cloneList.minTime = minTime;
   }
 
   public void clear() {
     rowCount = 0;
+    seqRowCount = 0;
     sorted = true;
     maxTime = Long.MIN_VALUE;
+    minTime = Long.MAX_VALUE;
+    queryContextList.clear();
+    ownerQuery = null;

Review Comment:
   indices and bitmaps are cleared in clearValue.
   ```
     void clearValue() {
       if (values != null) {
         for (boolean[] dataArray : values) {
           PrimitiveArrayManager.release(dataArray);
         }
         values.clear();
       }
       clearSlicesAndBitMap();
     }
   ```
   AlignedTVList already clear indices and bitmaps in clearValue method.



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

Reply via email to