private void testJoin(String engine, String joinType) throws Exception {
    HiveConf hiveConfMr = new HiveConf(hiveConf);  // make a clone of existing hive conf
    hiveConfMr.setVar(HiveConf.ConfVars.HIVE_EXECUTION_ENGINE, "mr");

    if (joinType.equals("MapJoin")) {
      setupMapJoin(hiveConf);
      setupMapJoin(hiveConfMr);
    }

    runQueries(engine, joinType, hiveConf, hiveConfMr);

    // Perform compaction. Join result after compaction should still be the same
    runStatementOnDriver("alter table "+ Table.ACIDTBL + " compact 'MAJOR'");
    runWorker(hiveConf);
    TxnStore txnHandler = TxnUtils.getTxnStore(hiveConf);
    ShowCompactResponse resp = txnHandler.showCompact(new ShowCompactRequest());
    Assert.assertEquals("Unexpected number of compactions in history", 1, resp.getCompactsSize());
    Assert.assertEquals("Unexpected 0 compaction state", TxnStore.CLEANING_RESPONSE, resp.getCompacts().get(0).getState());
    runCleaner(hiveConf);

    runQueries(engine, joinType, hiveConf, hiveConfMr);
  }
Checks if the file format is original or ACID file based on OrcInputFormat static methods.
@param path The file to check
@param expected The expected result of the isOriginal
@throws IOException Error when reading the file
itests/hive-unit/src/test/java/org/apache/hadoop/hive/ql/TestAcidOnTez.java