List<HCatPartition> partitions = client.getPartitions(hcatURI.getDb(), hcatURI.getTable(),
hcatURI.getPartitionMap());
return (partitions != null && !partitions.isEmpty());
}
catch (ConnectionFailureException e) {
throw new HCatAccessorException(ErrorCode.E1501, e);
}
catch (HCatException e) {
throw new HCatAccessorException(ErrorCode.E0902, e);
}
catch (URISyntaxException e) {
throw new HCatAccessorException(ErrorCode.E0902, e);
}
finally {
closeQuietly(client, closeClient);
}
}