private QueryResultsCache.LookupInfo createLookupInfoForQuery(ASTNode astNode) throws SemanticException {
    QueryResultsCache.LookupInfo lookupInfo = null;
    String queryString = getQueryStringForCache(astNode);
    if (queryString != null) {
      ValidTxnWriteIdList writeIdList = getQueryValidTxnWriteIdList();
      lookupInfo = new QueryResultsCache.LookupInfo(queryString, () -> writeIdList);
    }
    return lookupInfo;
  }
Generate the query string for this query (with fully resolved table references).
@return The query string with resolved references. NULL if an error occurred.
ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java