String serializedCatalog = CatalogUtil.getSerializedCatalogStringFromJar(CatalogUtil.loadAndUpgradeCatalogFromJar(bytes).getFirst());
Catalog catalog = new Catalog();
catalog.execute(serializedCatalog);
CatalogContext context = new CatalogContext(0, 0, catalog, bytes, null, 0, 0);
m_pt = new PlannerTool(context.cluster, context.database, 0);
AdHocPlannedStatement result = null;
result = m_pt.planSqlForTest("select * from warehouse;");
System.out.println(result);