@Override
    public int hashCode() {
      int res = super.hashCode();
      for (String p : partitionDesc) {
        res += p.hashCode();
      }
      return res;
    }
CacheTag for tables with more than one partition level.
storage-api/src/java/org/apache/hadoop/hive/common/io/CacheTag.java