@Override
  public void setFetchDirection(int direction) throws SQLException {
    checkConnection("setFetchDirection");
    if (direction != ResultSet.FETCH_FORWARD) {
      throw new SQLException("Not supported direction: " + direction);
    }
  }
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