private void setInvalidValuesForRuntimeFields(Record record) {
    record.setTotalNumberOfTasks(-1);
    record.setNumberOfSucceededTasks(-1);
    record.setNumberOfKilledTasks(-1);
    record.setNumberOfFailedTasks(-1);
    record.setTaskDurationMillis(-1L);
    record.setNodeUsedCount(-1);
    record.setNodeTotalCount(-1);
    record.setReduceInputGroups(-1);
    record.setReduceInputRecords(-1);
    record.setSpilledRecords(-1);
    record.setNumShuffledInputs(-1);
    record.setNumFailedShuffleInputs(-1);
    record.setInputRecordsProcessed(-1L);
    record.setInputSplitLengthBytes(-1L);
    record.setOutputRecords(-1L);
    record.setOutputBytesPhysical(-1L);
    record.setShuffleChunkCount(-1);
    record.setShuffleBytes(-1L);
    record.setShuffleBytesDiskDirect(-1L);
    record.setShufflePhaseTime(-1);
    record.setMergePhaseTime(-1);
  }
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