private void updateConfig(Statement statement, int timeout) throws SQLException {
    maxRows = Math.min(statement.getMaxRows(), maxRows);
    statement.setQueryTimeout(timeout);
  }
The implementation of {@link ClusterTestStatement} in cluster test.
integration-test/src/main/java/org/apache/iotdb/itbase/runtime/ClusterTestStatement.java