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 2021/09/15 15:52:19 UTC

[iotdb] branch master updated: [IOTDB-1690] Fix align by device type cast error (#3971)

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 e5d86c9  [IOTDB-1690] Fix align by device type cast error (#3971)
e5d86c9 is described below

commit e5d86c9d1d5de1934c77d2ea4f97f8cd6d669bb8
Author: Xieqijun <44...@users.noreply.github.com>
AuthorDate: Wed Sep 15 23:51:52 2021 +0800

    [IOTDB-1690] Fix align by device type cast error (#3971)
---
 server/src/main/java/org/apache/iotdb/db/metadata/MManager.java | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/server/src/main/java/org/apache/iotdb/db/metadata/MManager.java b/server/src/main/java/org/apache/iotdb/db/metadata/MManager.java
index e2205ce..8767af7 100644
--- a/server/src/main/java/org/apache/iotdb/db/metadata/MManager.java
+++ b/server/src/main/java/org/apache/iotdb/db/metadata/MManager.java
@@ -1241,8 +1241,10 @@ public class MManager {
       Template template = node.getUpperTemplate();
 
       for (IMNode child : node.getChildren().values()) {
-        IMeasurementMNode measurementMNode = (IMeasurementMNode) child;
-        res.add(measurementMNode.getSchema());
+        if (child.isMeasurement()) {
+          IMeasurementMNode measurementMNode = (IMeasurementMNode) child;
+          res.add(measurementMNode.getSchema());
+        }
       }
 
       // template