@Test
  public void majorCompactDuringFetchTaskConvertedRead() throws Exception {
    driver.close();
    driver = DriverFactory.newDriver(conf);
    String dbName = "default";
    String tblName = "cws";
    dropTables(tblName);

    executeStatementOnDriver(
        "CREATE TABLE " + tblName + "(a INT, b STRING) " + " STORED AS ORC  TBLPROPERTIES ('transactional'='true')",
        driver);
    executeStatementOnDriver("insert into " + tblName + " values (1, 'a')", driver);
    executeStatementOnDriver("insert into " + tblName + " values (3, 'b')", driver);
    executeStatementOnDriver("insert into " + tblName + " values (4, 'a')", driver);
    executeStatementOnDriver("insert into " + tblName + " values (5, 'b')", driver);

    CommandProcessorResponse resp = driver.run("select * from " + tblName + " LIMIT 5");
    FetchTask ft = driver.getFetchTask();
    ft.setMaxRows(1);
    List res = new ArrayList();
    ft.fetch(res);
    assertEquals(1, res.size());

    runMajorCompaction(dbName, tblName);
    runCleaner(conf);

    ft.fetch(res);
    assertEquals(2, res.size());
  }
After each major compaction, stats need to be updated on the table
1. create an ORC backed table (Orc is currently required by ACID)
2. populate with data
3. compute stats
4. Trigger major compaction (which should update stats)
5. check that stats have been updated

@throws Exception todo:
                  4. add a test with sorted table?
itests/hive-unit/src/test/java/org/apache/hadoop/hive/ql/txn/compactor/TestCompactor.java