private static DDL loadDdl(String dbType) throws Exception {
    List<String> lines = loadFile(dbType);
    List<String> statements = groupStatements(lines);
    Map<String, Table> tables = parseTableDefs(statements);
    List<String> alterTables = new ArrayList<>();
    for (String stmt: statements) {
      if (stmt.matches(".*alter\\s+table.*")) alterTables.add(stmt);
    }
    return new DDL(dbType, tables, alterTables);
  }
Currently we only fail on unnamed primary keys.
@param tableName
@param definition
ambari-server/src/test/java/org/apache/ambari/server/orm/db/DDLTestUtils.java