public static String getAggregationPrefix(Table table, Partition partition) throws MetaException {
    String prefix = getAggregationPrefix0(table, partition);
    return prefix.endsWith(Path.SEPARATOR) ? prefix : prefix + Path.SEPARATOR;
  }
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