private void verifyDeltaDirAndResult(int expectedDeltas, String tblName, String partName, int [][] resultData) throws Exception {
    verifyDeltaDir(expectedDeltas, tblName, partName);
    if (partName.equals("p=newpart")) return;

    List<String> rs = runStatementOnDriver("select a,b from " + tblName + (partName.isEmpty() ?
      "" : " where p='" + partName.substring(2) + "'") + " order by a");
    Assert.assertEquals(stringifyValues(resultData), rs);
  }
Test cleaner for TXN_TO_WRITE_ID table.
@throws Exception
ql/src/test/org/apache/hadoop/hive/ql/TestTxnCommands2.java