@Override
  protected void commitCompaction(String tmpTableName, HiveConf conf) throws IOException, HiveException {
    Util.cleanupEmptyTableDir(conf, AcidUtils.DELTA_PREFIX + tmpTableName + "_result");
    Util.cleanupEmptyTableDir(conf, AcidUtils.DELETE_DELTA_PREFIX + tmpTableName + "_result");
  }
Class responsible for handling query based minor compaction.
ql/src/java/org/apache/hadoop/hive/ql/txn/compactor/MinorQueryCompactor.java