@Test
  public void addPartitionTransactional() throws Exception {
    exception.expect(RuntimeException.class);
    exception.expectMessage("was created by Acid write");

    runStatementOnDriver("drop table if exists T");
    runStatementOnDriver("drop table if exists Tstage");
    runStatementOnDriver("create table T (a int, b int) partitioned by (p int) " +
        "clustered by (a) into 2 buckets stored as orc tblproperties('transactional'='true')");
    runStatementOnDriver("create table Tstage (a int, b int)  partitioned by (p int) clustered by (a) into 2 " +
        "buckets stored as orc tblproperties('transactional'='true')");

    runStatementOnDriver("insert into Tstage partition(p=1) values(0,2),(1,4)");

    runStatementOnDriver("ALTER TABLE T ADD PARTITION (p=0) location '"
        + getWarehouseDir() + "/tstage/p=1/delta_0000001_0000001_0000/bucket_00001_0'");
  }
Check to make sure that if files being loaded don't have standard Hive names, that they are
renamed during add.
ql/src/test/org/apache/hadoop/hive/ql/TestTxnAddPartition.java