@Override
  public ResultSetMetaData getMetaData() throws SQLException {
    RequestDelegate<ResultSetMetaData> delegate = createLocalRequestDelegate();
    for (ResultSet rs : resultSets) {
      delegate.addRequest(rs::getMetaData);
    }
    List<ResultSetMetaData> metaDataList = delegate.requestAll();
    return new ClusterResultSetMetaData(metaDataList, endpoints);
  }
The implementation of {@link ClusterTestResultSet} in cluster test.
integration-test/src/main/java/org/apache/iotdb/itbase/runtime/ClusterTestResultSet.java