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

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

commit 6aae81d67b3a2a90878ec058984cdb7ad286c66f
Author: shuwenwei <[email protected]>
AuthorDate: Mon Nov 3 17:14:31 2025 +0800

    SeriesScanUtil throws exception when using filters that could not match any 
time range
---
 .../db/queryengine/execution/operator/source/SeriesScanUtil.java  | 8 ++++++++
 1 file changed, 8 insertions(+)

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 2df717d9738..e814219ca36 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
@@ -198,6 +198,14 @@ public class SeriesScanUtil implements Accountable {
     orderUtils.setCurSeqFileIndex(dataSource);
     curUnseqFileIndex = 0;
 
+    List<TsFileResource> seqResources = dataSource.getSeqResources();
+    List<TsFileResource> unseqResources = dataSource.getUnseqResources();
+    if ((seqResources == null || seqResources.isEmpty())
+        && (unseqResources == null || unseqResources.isEmpty())) {
+      // no satisfied resources
+      return;
+    }
+
     if (satisfiedTimeRange == null) {
       long startTime = Long.MAX_VALUE;
       long endTime = Long.MIN_VALUE;

Reply via email to