import java.util.List;
public class DDLParsingValidationTest extends TosaLoaderTestBase {
private List<SQLParseError> validate(String ddl) {
DDLParser ddlParser = new DDLParser(Token.tokenize(ddl));
List<CreateTableStatement> createTableStatements = ddlParser.parseDDL();
ArrayList<SQLParseError> sqlParseErrors = new ArrayList<SQLParseError>();
for (CreateTableStatement createTableStatement : createTableStatements) {
sqlParseErrors.addAll(createTableStatement.getErrors());
}
return sqlParseErrors;