String tableName) throws FalconException {
LOG.info("Fetching partition columns of table: " + tableName);
try {
HCatClient client = get(catalogUrl);
HCatTable table = client.getTable(database, tableName);
List<HCatFieldSchema> partSchema = table.getPartCols();
List<String> partCols = new ArrayList<String>();
for (HCatFieldSchema part : partSchema) {
partCols.add(part.getName());
}
return partCols;