You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by li...@apache.org on 2020/08/24 05:57:11 UTC

[incubator-iotdb] branch reverse_reader updated: fix lost cached bug

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

liudw pushed a commit to branch reverse_reader
in repository https://gitbox.apache.org/repos/asf/incubator-iotdb.git


The following commit(s) were added to refs/heads/reverse_reader by this push:
     new b72cfef  fix lost cached bug
b72cfef is described below

commit b72cfefb81700cb049c9aba91ef2f538835a72ff
Author: liudw <li...@apache.org>
AuthorDate: Mon Aug 24 13:56:57 2020 +0800

    fix lost cached bug
---
 .../org/apache/iotdb/db/query/dataset/groupby/LocalGroupByExecutor.java  | 1 +
 1 file changed, 1 insertion(+)

diff --git a/server/src/main/java/org/apache/iotdb/db/query/dataset/groupby/LocalGroupByExecutor.java b/server/src/main/java/org/apache/iotdb/db/query/dataset/groupby/LocalGroupByExecutor.java
index fa26c92..a6dd72f 100644
--- a/server/src/main/java/org/apache/iotdb/db/query/dataset/groupby/LocalGroupByExecutor.java
+++ b/server/src/main/java/org/apache/iotdb/db/query/dataset/groupby/LocalGroupByExecutor.java
@@ -145,6 +145,7 @@ public class LocalGroupByExecutor implements GroupByExecutor {
     }
     if (!ascending && (batchData.getTimeByIndex(0) > curEndTime
         || batchData.currentTime() < curStartTime)) {
+      preCachedData = batchData;
       return true;
     }
     return false;