diff --git a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/tools/schema/SRStatementGenerator.java b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/tools/schema/SRStatementGenerator.java index 9c280a2d1e84..ebd9b4f640de 100644 --- a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/tools/schema/SRStatementGenerator.java +++ b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/tools/schema/SRStatementGenerator.java @@ -285,6 +285,7 @@ public List visitDatabaseMNode( @Override public List visitMeasurementMNode( AbstractMeasurementMNode> node, PartialPath path) { + path = new MeasurementPath(path.getNodes()); if (node.isLogicalView()) { List statementList = new ArrayList<>(); final CreateLogicalViewStatement stmt = new CreateLogicalViewStatement();