@Override
  public void setFetchSize(int rows) throws SQLException {
    checkConnection("setFetchSize");
    if (rows > 0) {
      this.fetchSize = rows;
    } else if (rows == 0) {
      this.fetchSize = connection.fetchSize;
    } else {
      throw new SQLException("Fetch size must be greater or equal to 0");
    }
  }
Poll on the operation status, till the operation is complete. We want to ensure that since a
client might end up using executeAsync and then call this to check if the query run is
finished.
jdbc/src/java/org/apache/hive/jdbc/HiveStatement.java