public boolean isCompactionTable() {
    return getTable() != null ? AcidUtils.isCompactionTable(table.getParameters())
        : AcidUtils.isCompactionTable(getTableInfo().getProperties());
  }
@return true, if the table is used during compaction
ql/src/java/org/apache/hadoop/hive/ql/plan/FileSinkDesc.java