@Override public List<ColumnStatistics> getPartitionColumnStatistics(String catName, String dbName, String tblName,
      List<String> partNames, List<String> colNames, String engine, String writeIdList) throws MetaException, NoSuchObjectException {
    if (!CacheUtils.HIVE_ENGINE.equals(engine)) {
      throw new RuntimeException("CachedStore can only be enabled for Hive engine");
    }
    // If writeIdList is not null, that means stats are requested within a txn context. So set stats compliant to false,
    // if areTxnStatsSupported is false or the write id which has updated the stats in not compatible with writeIdList.
    // This is done within table lock as the number of partitions may be more than one and we need a consistent view
    // for all the partitions.
    List<ColumnStatistics> columnStatistics = sharedCache
        .getPartitionColStatsListFromCache(catName, dbName, tblName, partNames, colNames, writeIdList,
            areTxnStatsSupported);
    if (columnStatistics == null) {
      return rawStore.getPartitionColumnStatistics(catName, dbName, tblName, partNames, colNames, engine, writeIdList);
    }
    return columnStatistics;
  }
getPartitionSpecsByFilterAndProjection interface is currently non-cacheable.
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/cache/CachedStore.java