ZhanGHanG9991 commented on code in PR #7277:
URL: https://github.com/apache/iotdb/pull/7277#discussion_r966997338


##########
server/src/main/java/org/apache/iotdb/db/mpp/execution/operator/process/RawDataAggregationOperator.java:
##########
@@ -65,20 +73,80 @@ protected boolean calculateNextAggregationResult() {
         // if child still has next but can't be invoked now
         return false;
       } else {
+        if (!windowManager.isCurWindowInit()) {
+          initWindowManagerAndAggregators();
+        }
+        updateResultTsBlock();
         break;
       }
     }
 
-    // update result using aggregators
-    updateResultTsBlock();
-
     return true;
   }
 
-  private boolean calcFromRawData() {
-    Pair<Boolean, TsBlock> calcResult =
-        calculateAggregationFromRawData(inputTsBlock, aggregators, 
curTimeRange, ascending);
-    inputTsBlock = calcResult.getRight();
-    return calcResult.getLeft();
+  private boolean calculateAndUpdateFromRawData() {
+    // 待使用的inputTsBlock为空就直接return false

Review Comment:
   I've removed it.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to