@Test
  public void testWritesToDisabledCompactionTableCtas() throws Exception {
    MetastoreConf.setBoolVar(hiveConf, MetastoreConf.ConfVars.METRICS_ENABLED, true);
    MetastoreConf.setVar(hiveConf, MetastoreConf.ConfVars.TRANSACTIONAL_EVENT_LISTENERS,
        HMSMetricsListener.class.getName());

    runStatementOnDriver("insert into " + Table.ACIDTBL + " values(1,1)");
    runStatementOnDriver("create table mytable stored as orc tblproperties ('transactional'='true')"
        + "as select * from " + Table.ACIDTBL);
  }
There aren't enough deltas to compact, but cleaning is needed because an insert overwrite
was executed.
ql/src/test/org/apache/hadoop/hive/ql/TestTxnCommands3.java