You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by xi...@apache.org on 2021/07/30 13:19:23 UTC

[iotdb] branch 0.12DescBug created (now 6572126)

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

xiangweiwei pushed a change to branch 0.12DescBug
in repository https://gitbox.apache.org/repos/asf/iotdb.git.


      at 6572126  Fix 0.12 order by time desc bug

This branch includes the following new commits:

     new 6572126  Fix 0.12 order by time desc bug

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


[iotdb] 01/01: Fix 0.12 order by time desc bug

Posted by xi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

xiangweiwei pushed a commit to branch 0.12DescBug
in repository https://gitbox.apache.org/repos/asf/iotdb.git

commit 6572126a598bd0f01154378a63de3681598ed52e
Author: Alima777 <wx...@gmail.com>
AuthorDate: Fri Jul 30 21:18:47 2021 +0800

    Fix 0.12 order by time desc bug
---
 .../main/java/org/apache/iotdb/db/query/reader/series/SeriesReader.java | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/server/src/main/java/org/apache/iotdb/db/query/reader/series/SeriesReader.java b/server/src/main/java/org/apache/iotdb/db/query/reader/series/SeriesReader.java
index 7ded941..8225c6f 100644
--- a/server/src/main/java/org/apache/iotdb/db/query/reader/series/SeriesReader.java
+++ b/server/src/main/java/org/apache/iotdb/db/query/reader/series/SeriesReader.java
@@ -700,6 +700,7 @@ public class SeriesReader {
                 || (!orderUtils.getAscending()
                     && timeValuePair.getTimestamp()
                         < firstPageReader.getStatistics().getStartTime())) {
+              cachedBatchData.flip();
               hasCachedNextOverlappedPage = cachedBatchData.hasCurrent();
               return hasCachedNextOverlappedPage;
             } else {
@@ -725,6 +726,7 @@ public class SeriesReader {
                 || (!orderUtils.getAscending()
                     && timeValuePair.getTimestamp()
                         < seqPageReaders.get(0).getStatistics().getStartTime())) {
+              cachedBatchData.flip();
               hasCachedNextOverlappedPage = cachedBatchData.hasCurrent();
               return hasCachedNextOverlappedPage;
             } else {