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

ericpai pushed a commit to branch bugfix/iotdb-5417
in repository https://gitbox.apache.org/repos/asf/iotdb.git

commit 3c73f0dd313c6ac735541afb361b39253cfb338a
Author: ericpai <[email protected]>
AuthorDate: Mon Jan 16 12:24:16 2023 +0800

    [IOTDB-5417] Fix missing hasNext() before next() in TagAggregationOperator
---
 .../iotdb/db/mpp/execution/operator/process/TagAggregationOperator.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/server/src/main/java/org/apache/iotdb/db/mpp/execution/operator/process/TagAggregationOperator.java
 
b/server/src/main/java/org/apache/iotdb/db/mpp/execution/operator/process/TagAggregationOperator.java
index 778e0d28c5..1e2d5850ce 100644
--- 
a/server/src/main/java/org/apache/iotdb/db/mpp/execution/operator/process/TagAggregationOperator.java
+++ 
b/server/src/main/java/org/apache/iotdb/db/mpp/execution/operator/process/TagAggregationOperator.java
@@ -122,7 +122,7 @@ public class TagAggregationOperator implements 
ProcessOperator {
         continue;
       }
 
-      if (!canCallNext[i]) {
+      if (!canCallNext[i] || !children.get(i).hasNextWithTimer()) {
         return false;
       }
 

Reply via email to