This is an automated email from the ASF dual-hosted git repository. shuwenwei pushed a commit to branch fixSeriesScan0107-1.3 in repository https://gitbox.apache.org/repos/asf/iotdb.git
commit d1f33643f456c892ed2948624bb42f387f1d5c06 Author: shuwenwei <[email protected]> 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 ffd0da889e9..bebcfe2537c 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 @@ -1256,7 +1256,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()); @@ -1274,7 +1274,7 @@ public class SeriesScanUtil implements Accountable { /* * unpack all directly overlapped seq/unseq files with first TimeSeriesMetadata */ - if (endTime != -1) { + if (endTime != null) { unpackAllOverlappedTsFilesToTimeSeriesMetadata(endTime); }
