You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ha...@apache.org on 2022/09/15 12:27:52 UTC

[iotdb] branch master updated: [IOTDB-4408] fix OutOfBoundException in SchemaFetcher (#7332)

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

haonan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iotdb.git


The following commit(s) were added to refs/heads/master by this push:
     new d8116d4820 [IOTDB-4408] fix OutOfBoundException in SchemaFetcher (#7332)
d8116d4820 is described below

commit d8116d48209fc12c6168c1c34d1bf2742831ed46
Author: yschengzi <87...@users.noreply.github.com>
AuthorDate: Thu Sep 15 20:27:46 2022 +0800

    [IOTDB-4408] fix OutOfBoundException in SchemaFetcher (#7332)
---
 .../org/apache/iotdb/db/mpp/plan/analyze/StandaloneSchemaFetcher.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/server/src/main/java/org/apache/iotdb/db/mpp/plan/analyze/StandaloneSchemaFetcher.java b/server/src/main/java/org/apache/iotdb/db/mpp/plan/analyze/StandaloneSchemaFetcher.java
index 4e9cc1cc67..924a7517d2 100644
--- a/server/src/main/java/org/apache/iotdb/db/mpp/plan/analyze/StandaloneSchemaFetcher.java
+++ b/server/src/main/java/org/apache/iotdb/db/mpp/plan/analyze/StandaloneSchemaFetcher.java
@@ -125,7 +125,7 @@ public class StandaloneSchemaFetcher implements ISchemaFetcher {
       int totalSize = 0;
       boolean isAligned = isAlignedList.get(entry.getValue().get(0));
       for (int index : entry.getValue()) {
-        if (isAlignedList.get(entry.getValue().get(index)) != isAligned) {
+        if (isAlignedList.get(index) != isAligned) {
           throw new StatementAnalyzeException(
               String.format("Inconsistent device alignment of %s in insert plan.", entry.getKey()));
         }