public static boolean isDynPartAbort(Table t, String partName) {
    return Optional.ofNullable(t).map(Table::getPartitionKeys).filter(pk -> !pk.isEmpty()).isPresent()
            && partName == null;
  }
Get the compactor queue name if it's defined.
@param conf global hive conf
@param ci compaction info object
@param table instance of table
@return name of the queue
ql/src/java/org/apache/hadoop/hive/ql/txn/compactor/CompactorUtil.java