driver.run("use " + dbName);
driver.run(String.format("create table %s (a string) partitioned by (b string)", tblName));
listSize++;
Table tbl = msc.getTable(dbName, tblName);
assertEquals(notifyList.size(), listSize);
CreateTableEvent tblEvent = (CreateTableEvent)(notifyList.get(listSize - 1));
assert tblEvent.getStatus();
assertEquals(tbl.getTableName(), tblEvent.getTable().getTableName());
assertEquals(tbl.getDbName(), tblEvent.getTable().getDbName());
assertEquals(tbl.getSd().getLocation(), tblEvent.getTable().getSd().getLocation());
driver.run("alter table tmptbl add partition (b='2011')");
listSize++;
Partition part = msc.getPartition("tmpdb", "tmptbl", "b=2011");
assertEquals(notifyList.size(), listSize);