@Override
  public TSStatus createTableView(final TCreateTableViewReq req) {
    TSStatus status = confirmLeader();
    if (status.getCode() == TSStatusCode.SUCCESS_STATUS.getStatusCode()) {
      final Pair<String, TsTable> pair =
          TsTableInternalRPCUtil.deserializeSingleTsTableWithDatabase(req.getTableInfo());
      return procedureManager.createTableView(pair.left, pair.right, req.isReplace());
    } 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