public void validatePartitionNameCharacters(List<String> partVals) throws HiveException {
    try {
      getMSC().validatePartitionNameCharacters(partVals);
    } catch (Exception e) {
      LOG.error("Failed validatePartitionNameCharacters", e);
      throw new HiveException(e);
    }
  }
Get a number of Partitions by filter.
@param tbl The table containing the partitions.
@param filter A string represent partition predicates.
@return the number of partitions satisfying the partition predicates.
@throws HiveException
@throws MetaException
@throws NoSuchObjectException
@throws TException
ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java