private void checkConnection(String action) throws SQLException {
    if (isClosed) {
      throw new SQLException("Cannot " + action + " after statement has been closed");
    }
  }
For an async SQLOperation, GetOperationStatus will use the long polling approach It will
essentially return after the HIVE_SERVER2_LONG_POLLING_TIMEOUT (a server config) expires
jdbc/src/java/org/apache/hive/jdbc/HiveStatement.java