This is an automated email from the ASF dual-hosted git repository.

leirui pushed a commit to branch research/M4-visualization
in repository https://gitbox.apache.org/repos/asf/iotdb.git

commit 960357c01edac2beeacfdef10cc3c2c3a659a03d
Author: Lei Rui <[email protected]>
AuthorDate: Fri Jul 7 14:07:40 2023 +0800

    debu
---
 .../org/apache/iotdb/tsfile/read/common/ChunkSuit4CPV.java    | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git 
a/tsfile/src/main/java/org/apache/iotdb/tsfile/read/common/ChunkSuit4CPV.java 
b/tsfile/src/main/java/org/apache/iotdb/tsfile/read/common/ChunkSuit4CPV.java
index 866ae9e513c..57250041c2e 100644
--- 
a/tsfile/src/main/java/org/apache/iotdb/tsfile/read/common/ChunkSuit4CPV.java
+++ 
b/tsfile/src/main/java/org/apache/iotdb/tsfile/read/common/ChunkSuit4CPV.java
@@ -374,6 +374,17 @@ public class ChunkSuit4CPV {
 
       // search from estimatePos in the timeBuffer to find the closet 
timestamp equal to or smaller
       // than the given timestamp
+      // TODO debug
+      try {
+        long tmp = pageReader.timeBuffer.getLong(estimatedPos * 8);
+      } catch (IndexOutOfBoundsException e) {
+        System.out.println("targetTimestamp=" + targetTimestamp);
+        System.out.println("estimatedPos=" + estimatedPos);
+        System.out.println("count=" + 
chunkMetadata.getStatistics().getCount());
+        System.out.println("stepregress segmentKeys=" + 
stepRegress.getSegmentKeys());
+        System.out.println("stepregress slope=" + stepRegress.getSlope());
+      }
+
       if (pageReader.timeBuffer.getLong(estimatedPos * 8) > targetTimestamp) {
         while (pageReader.timeBuffer.getLong(estimatedPos * 8) > 
targetTimestamp) {
           estimatedPos--;

Reply via email to