Source:
private InMemoryJarfile compileInternal( final VoltCompilerReader cannonicalDDLIfAny, final Catalog previousCatalogIfAny, final List<VoltCompilerReader> ddlReaderList, final InMemoryJarfile jarOutputRet) { assert(ddlReaderList.size() > 0); final InMemoryJarfile jarOutput = (jarOutputRet != null ? jarOutputRet : new InMemoryJarfile()); if (ddlReaderList == null || ddlReaderList.isEmpty()) { addErr("One or more DDL files are required."); return null; } m_warnings.clear(); m_infos.clear(); m_errors.clear(); final Catalog catalog = compileCatalogInternal(cannonicalDDLIfAny, previousCatalogIfAny, ddlReaderList, jarOutput); if (catalog == null) { return null; } Cluster cluster = catalog.getClusters().get("cluster"); assert(cluster != null); Database database = cluster.getDatabases().get("database"); assert(database != null); String ddlWithBatchSupport = CatalogSchemaTools.toSchema(catalog, m_importLines); m_canonicalDDL = CatalogSchemaTools.toSchemaWithoutInlineBatches(ddlWithBatchSupport); try { generateCatalogReport(m_catalog, ddlWithBatchSupport); } catch (IOException e) { e.printStackTrace(); return null; } jarOutput.put(AUTOGEN_DDL_FILE_NAME, m_canonicalDDL.getBytes(Constants.UTF8ENCODING)); if (DEBUG_VERIFY_CATALOG) { debugVerifyCatalog(jarOutput, catalog); } final String catalogCommands = catalog.serialize(); byte[] catalogBytes = catalogCommands.getBytes(Constants.UTF8ENCODING); try { if (!jarOutput.containsKey(CatalogUtil.CATALOG_BUILDINFO_FILENAME)) { addBuildInfo(jarOutput); } jarOutput.put(CatalogUtil.CATALOG_FILENAME, catalogBytes); jarOutput.put("catalog-report.html", m_report.getBytes(Constants.UTF8ENCODING)); } catch (final Exception e) { e.printStackTrace(); return null; } assert(!hasErrors()); if (hasErrors()) { return null; } return jarOutput; }

Target:
private InMemoryJarfile compileInternal( final VoltCompilerReader cannonicalDDLIfAny, final Catalog previousCatalogIfAny, final List<VoltCompilerReader> ddlReaderList, final InMemoryJarfile jarOutputRet) { assert(ddlReaderList.size() > 0); final InMemoryJarfile jarOutput = (jarOutputRet != null ? jarOutputRet : new InMemoryJarfile()); if (ddlReaderList == null || ddlReaderList.isEmpty()) { addErr("One or more DDL files are required."); return null; } m_warnings.clear(); m_infos.clear(); m_errors.clear(); final Catalog catalog = compileCatalogInternal(cannonicalDDLIfAny, previousCatalogIfAny, ddlReaderList, jarOutput); if (catalog == null) { return null; } Cluster cluster = catalog.getClusters().get("cluster"); assert(cluster != null); Database database = cluster.getDatabases().get("database"); assert(database != null); String ddlWithBatchSupport = CatalogSchemaTools.toSchema(catalog, m_importLines); m_canonicalDDL = CatalogSchemaTools.toSchemaWithoutInlineBatches(ddlWithBatchSupport); try { generateCatalogReport(m_catalog, ddlWithBatchSupport, standaloneCompiler, m_warnings, jarOutput); } catch (IOException e) { e.printStackTrace(); return null; } jarOutput.put(AUTOGEN_DDL_FILE_NAME, m_canonicalDDL.getBytes(Constants.UTF8ENCODING)); if (DEBUG_VERIFY_CATALOG) { debugVerifyCatalog(jarOutput, catalog); } final String catalogCommands = catalog.serialize(); byte[] catalogBytes = catalogCommands.getBytes(Constants.UTF8ENCODING); try { if (!jarOutput.containsKey(CatalogUtil.CATALOG_BUILDINFO_FILENAME)) { addBuildInfo(jarOutput); } jarOutput.put(CatalogUtil.CATALOG_FILENAME, catalogBytes); } catch (final Exception e) { e.printStackTrace(); return null; } assert(!hasErrors()); if (hasErrors()) { return null; } return jarOutput; }