private Map<String, String> adjustStatsParamsForGet(Map<String, String> tableParams, Map<String, String> params,
      long statsWriteId, String validWriteIds) throws MetaException {
    if (!TxnUtils.isTransactionalTable(tableParams)) {
      return params; // Not a txn table.
    }
    if (areTxnStatsSupported && ((validWriteIds == null) || ObjectStore
        .isCurrentStatsValidForTheQuery(params, statsWriteId, validWriteIds, false))) {
      // Valid stats are supported for txn tables, and either no verification was requested by the
      // caller, or the verification has succeeded.
      return params;
    }
    // Clone the map to avoid affecting the cached value.
    params = new HashMap<>(params);
    StatsSetupConst.setBasicStatsState(params, StatsSetupConst.FALSE);
    return params;
  }
getPartitionSpecsByFilterAndProjection interface is currently non-cacheable.
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/cache/CachedStore.java