public static PrunedPartitionList prune(TableScanOperator ts, ParseContext parseCtx,
      String alias) throws SemanticException {
    return prune(ts.getConf().getTableMetadata(), parseCtx.getOpToPartPruner().get(ts),
        parseCtx.getConf(), alias, parseCtx.getPrunedPartitions());
  }
Get the partition list for the TS operator that satisfies the partition pruner
condition.
ql/src/java/org/apache/hadoop/hive/ql/optimizer/ppr/PartitionPruner.java