// table without partitions
partitions.add(InputPartition.newFromHiveTable(table));
} else {
// table with partitions, find matches to user filter.
List<Partition> hivePartitions;
HiveTableDesc tableDesc = inputDesc.getTableDesc();
try {
hivePartitions = client.get_partitions_by_filter(tableDesc.getDatabaseName(),
tableDesc.getTableName(), inputDesc.getPartitionFilter(), (short) -1);
// CHECKSTYLE: stop IllegalCatch
} catch (Exception e) {
// CHECKSTYLE: resume IllegalCatch
throw new IOException(e);
}