private List<Table> getNonTransactionalTables() {
    // views have been expanded by CBO already and can be ignored
    return tablesFromReadEntities(inputs)
        .stream()
        .filter(table -> !table.isView())
        .filter(table -> !AcidUtils.isTransactionalTable(table))
        .collect(Collectors.toList());
  }
Called after a query plan has been generated, to determine if the results of this query
can be added to the results cache.
ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java