private void enrichFromQueryProperties(QueryProperties queryProperties, Record record) {
    if (queryProperties == null) {
      return;
    }
    record.setUsedTables(queryProperties.getUsedTables());
  }
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