You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by sh...@apache.org on 2026/01/07 11:04:34 UTC

(iotdb) 01/01: Fix incorrect overlap unpack when endTime equals sentinel value

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

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

commit e8716b09cd7677cc807d189e0d3f818fcdd4b46d
Author: shuwenwei <s1...@gmail.com>
AuthorDate: Wed Jan 7 19:04:11 2026 +0800

    Fix incorrect overlap unpack when endTime equals sentinel value
---
 .../db/queryengine/execution/operator/source/SeriesScanUtil.java      | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/execution/operator/source/SeriesScanUtil.java b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/execution/operator/source/SeriesScanUtil.java
index 30149d2ad02..925c2f8f70f 100644
--- a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/execution/operator/source/SeriesScanUtil.java
+++ b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/execution/operator/source/SeriesScanUtil.java
@@ -1818,7 +1818,7 @@ public class SeriesScanUtil implements Accountable {
     /*
      * find end time of the first TimeSeriesMetadata
      */
-    long endTime = -1L;
+    Long endTime = null;
     if (!seqTimeSeriesMetadata.isEmpty() && unSeqTimeSeriesMetadata.isEmpty()) {
       // only has seq
       endTime = orderUtils.getOverlapCheckTime(seqTimeSeriesMetadata.get(0).getStatistics());
@@ -1836,7 +1836,7 @@ public class SeriesScanUtil implements Accountable {
     /*
      * unpack all directly overlapped seq/unseq files with first TimeSeriesMetadata
      */
-    if (endTime != -1) {
+    if (endTime != null) {
       unpackAllOverlappedTsFilesToTimeSeriesMetadata(endTime);
     }