private boolean needsTransform() {
    return SessionState.get().getAuthorizerV2() != null &&
        SessionState.get().getAuthorizerV2().needTransform();
  }
Some initial checks for a query to see if we can look this query up in the results cache.
ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java