@Override
  public TSStatus alterOrDropTable(final TAlterOrDropTableReq req) {
    final TSStatus status = confirmLeader();
    if (status.getCode() == TSStatusCode.SUCCESS_STATUS.getStatusCode()) {
      switch (AlterOrDropTableOperationType.getType(req.operationType)) {
        case ADD_COLUMN:
          return procedureManager.alterTableAddColumn(req);
        case SET_PROPERTIES:
          return procedureManager.alterTableSetProperties(req);
        case RENAME_COLUMN:
          return procedureManager.alterTableRenameColumn(req);
        case DROP_COLUMN:
          return procedureManager.alterTableDropColumn(req);
        case DROP_TABLE:
          return procedureManager.dropTable(req);
        case COMMENT_TABLE:
          return clusterSchemaManager.setTableComment(
              req.getDatabase(),
              req.getTableName(),
              ReadWriteIOUtils.readString(req.updateInfo),
              req.isSetIsView() && req.isIsView(),
              false);
        case COMMENT_COLUMN:
          return clusterSchemaManager.setTableColumnComment(
              req.getDatabase(),
              req.getTableName(),
              ReadWriteIOUtils.readString(req.updateInfo),
              ReadWriteIOUtils.readString(req.updateInfo),
              false);
        case RENAME_TABLE:
          return procedureManager.renameTable(req);
        default:
          throw new IllegalArgumentException();
      }
    } else {
      return status;
    }
  }
Get all related dataRegion which may contains the data of specific timeseries matched by given
patternTree
iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/manager/ConfigManager.java