VoltCompiler compiler = new VoltCompiler();
boolean success = compiler.compileFromDDL(jarOut.getPath(), schemaPath);
assertTrue("Compilation failed unexpectedly", success);
Catalog catalog = new Catalog();
catalog.execute(CatalogUtil.getSerializedCatalogStringFromJar(CatalogUtil.loadAndUpgradeCatalogFromJar(MiscUtils.fileToBytes(new File(jarOut.getPath()))).getFirst()));
Database db = catalog.getClusters().get("cluster").getDatabases().get("database");
Table t = db.getTables().get("T");
assertEquals("C2", t.getPartitioncolumn().getTypeName());
}