private QueryResultsCache.QueryInfo createCacheQueryInfoForQuery(QueryResultsCache.LookupInfo lookupInfo) {
    long queryTime = SessionState.get().getQueryCurrentTimestamp().toEpochMilli();
    return new QueryResultsCache.QueryInfo(queryTime, lookupInfo, queryState.getHiveOperation(),
        resultSchema, getTableAccessInfo(), getColumnAccessInfo(), inputs);
  }
Set the query plan to use cache entry passed in to return the query results.
@param cacheEntry The results cache entry that will be used to resolve the query.
ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java