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

[iotdb] 01/01: [IOTDB-3339] Fix index out of bound while doing raw query

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

jackietien pushed a commit to branch IOTDB-3339
in repository https://gitbox.apache.org/repos/asf/iotdb.git

commit 22349c4eeeb04003a35da84843661d1481ba972c
Author: JackieTien97 <ja...@gmail.com>
AuthorDate: Mon May 30 21:12:57 2022 +0800

    [IOTDB-3339] Fix index out of bound while doing raw query
---
 .../db/mpp/execution/operator/process/merge/SingleColumnMerger.java   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/server/src/main/java/org/apache/iotdb/db/mpp/execution/operator/process/merge/SingleColumnMerger.java b/server/src/main/java/org/apache/iotdb/db/mpp/execution/operator/process/merge/SingleColumnMerger.java
index eb4743a036..f621f59d99 100644
--- a/server/src/main/java/org/apache/iotdb/db/mpp/execution/operator/process/merge/SingleColumnMerger.java
+++ b/server/src/main/java/org/apache/iotdb/db/mpp/execution/operator/process/merge/SingleColumnMerger.java
@@ -106,8 +106,8 @@ public class SingleColumnMerger implements ColumnMerger {
           columnBuilder.appendNull();
         }
       }
-      // update the index after merging
-      updatedInputIndex[tsBlockIndex] = index;
     }
+    // update the index after merging
+    updatedInputIndex[tsBlockIndex] = index;
   }
 }