private String getClassifiedOperation() {
    QueryState queryState = driverContext.getQueryState();
    return queryState.getSqlKind() == null ? queryState.getCommandType() : queryState.getSqlKind().toString();
  }
With query history, a more detailed HiveOperation-based query classification is introduced without breaking the
original one. If there is an SqlKind stored in the QueryState, the record will contain it.
ql/src/java/org/apache/hadoop/hive/ql/queryhistory/RecordEnricher.java