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

shuwenwei pushed a commit to branch fixBug0902-1.3
in repository https://gitbox.apache.org/repos/asf/iotdb.git

commit c2b822912bbdad5e1f5aa20549881f9982e3cc09
Author: shuwenwei <[email protected]>
AuthorDate: Tue Sep 2 16:24:54 2025 +0800

    fix bug
---
 .../src/main/java/org/apache/iotdb/db/utils/datastructure/TVList.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/utils/datastructure/TVList.java
 
b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/utils/datastructure/TVList.java
index 7db4791571c..d392d4caa4b 100644
--- 
a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/utils/datastructure/TVList.java
+++ 
b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/utils/datastructure/TVList.java
@@ -945,7 +945,7 @@ public abstract class TVList implements WALEntryValue {
 
     // When traversing in desc order, the index needs to be converted
     public int getScanOrderIndex(int rowIndex) {
-      return scanOrder.isAscending() ? rowIndex : rowCount - 1 - rowIndex;
+      return scanOrder.isAscending() ? rowIndex : rows - 1 - rowIndex;
     }
 
     @Override

Reply via email to