private static boolean isBooleanExpr(ExprNodeDesc expr) {
    return expr instanceof ExprNodeConstantDesc &&
        expr.getTypeInfo() instanceof PrimitiveTypeInfo &&
        expr.getTypeInfo().getTypeName().equals(serdeConstants.BOOLEAN_TYPE_NAME);
  }
Get the partition list for the table that satisfies the partition pruner
condition.

@param tab
         the table object for the alias
@param prunerExpr
         the pruner expression for the alias
@param conf
         for checking whether "strict" mode is on.
@param alias
         for generating error message only.
@param prunedPartitionsMap
         cached result for the table
@return the partition list for the table that satisfies the partition
        pruner condition.
ql/src/java/org/apache/hadoop/hive/ql/optimizer/ppr/PartitionPruner.java