private void dropMultiColDatedPartitions( String tableName, List<Map<String, String>> candidatePartitions) throws Exception { for (Map<String, String> partition : candidatePartitions) { client.dropPartitions(DATABASE_NAME, tableName, partition, true); } }
private void dropPartitions(String tableName, List<String> candidatePartitions) throws Exception { for (String candidatePartition : candidatePartitions) { Map<String, String> partition = new HashMap<String, String>(); partition.put("ds", candidatePartition); // yyyyMMDD partition.put("region", "in"); client.dropPartitions(DATABASE_NAME, tableName, partition, true); } }