public TSStatus checkPermissionBeforeProcess(final String userName) {
    if (AuthorityChecker.SUPER_USER.equals(userName)) {
      return new TSStatus(TSStatusCode.SUCCESS_STATUS.getStatusCode());
    }

    final List<PartialPath> targetPathList = new ArrayList<>(viewPathToSourceMap.keySet());
    return AuthorityChecker.getTSStatus(
        AuthorityChecker.checkFullPathOrPatternListPermission(
            userName, targetPathList, PrivilegeType.WRITE_SCHEMA),
        targetPathList,
        PrivilegeType.WRITE_SCHEMA);
  }
A map from target path to source expression. Yht target path is the name of this logical view,
and the source expression is the data source of this view.
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/planner/plan/node/metadata/write/view/AlterLogicalViewNode.java