protected static void runAlter(Session session, DDLFunctions ddl, DMLFunctions dml, QueryContext context,
TableChangeValidator.ChangeLevel expectedChangeLevel, String defaultSchema, String sql) {
SQLParser parser = new SQLParser();
StatementNode node;
try {
node = parser.parseStatement(sql);
} catch(StandardException e) {
throw new RuntimeException(e);
}
assertTrue("is alter node", node instanceof AlterTableNode);
TableChangeValidator.ChangeLevel level = AlterTableDDL.alterTable(ddl, dml, session, defaultSchema, (AlterTableNode) node, context);