// Setup fake database connection. Pass stuff to database to get catalog
// objects
//
Catalog catalog = new Catalog();
catalog.execute("add / clusters " + CatalogUtil.DEFAULT_CLUSTER_NAME);
catalog.execute("add /clusters[" + CatalogUtil.DEFAULT_CLUSTER_NAME + "] databases " + CatalogUtil.DEFAULT_DATABASE_NAME);
Database catalog_db = catalog.getClusters().get(CatalogUtil.DEFAULT_CLUSTER_NAME).getDatabases().get(CatalogUtil.DEFAULT_DATABASE_NAME);
VoltCompiler compiler = new VoltCompiler();
DDLCompiler ddl_compiler = new DDLCompiler(compiler, hzsql);
ddl_compiler.fillCatalogFromXML(catalog, catalog_db, xmlSchema);