public void alterLogicalView(PartialPath path, ViewExpression expression)
      throws MetadataException {
    IMeasurementMNode<ICachedMNode> leafMNode = getMeasurementMNode(path);
    try {
      if (!leafMNode.isLogicalView()) {
        throw new MetadataException(String.format("[%s] is no view.", path));
      }
      store.updateMNode(
          leafMNode.getAsMNode(),
          o ->
              o.getAsMeasurementMNode()
                  .setSchema(new LogicalViewSchema(leafMNode.getName(), expression)));
    } finally {
      unPinMNode(leafMNode.getAsMNode());
    }
  }
Get node by the path

@return last node in given seriesPath
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/schemaengine/schemaregion/mtree/impl/pbtree/MTreeBelowSGCachedImpl.java