private static String getAggregationPrefix0(Table table, Partition partition) throws MetaException {

    // prefix is of the form dbName.tblName
    String prefix = FileUtils.escapePathName(table.getDbName()).toLowerCase() + "." +
        FileUtils.escapePathName(table.getTableName()).toLowerCase();
    // FIXME: this is a secret contract; reusein getAggrKey() creates a more closer relation to the StatsGatherer
    // prefix = work.getAggKey();
    if (partition != null) {
      return Utilities.join(prefix, Warehouse.makePartPath(partition.getSpec()));
    }
    return prefix;
  }
Get the list of partitions that need to update statistics.
TODO: we should reuse the Partitions generated at compile time
since getting the list of partitions is quite expensive.

@return a list of partitions that need to update statistics.
@throws HiveException
ql/src/java/org/apache/hadoop/hive/ql/stats/BasicStatsTask.java