private boolean isFetchFirst(FetchOrientation fetchOrientation) {
    //TODO: Since OperationLog is moved to package o.a.h.h.ql.session,
    // we may add a Enum there and map FetchOrientation to it.
    if (fetchOrientation.equals(FetchOrientation.FETCH_FIRST)) {
      return true;
    }
    return false;
  }
Cancel the running operation unless it is already in a terminal state
@param opHandle
@throws HiveSQLException
service/src/java/org/apache/hive/service/cli/operation/OperationManager.java