@Test public void testCreateSchema() { String sql = "CREATE SCHEMA IF NOT EXISTS test"; Statement statement = parser.createStatement(sql); CreateSchema expected = new CreateSchema(QualifiedName.of("test"), true); System.out.println(statement.toString()); assertEquals(statement.toString(), expected.toString()); }
public Statement createStatement(String sql) { return (Statement) invokeParser("statement", sql, PardSqlBaseParser::singleStatement); }
SqlParser { public Statement createStatement(String sql) { return (Statement) invokeParser("statement", sql, PardSqlBaseParser::singleStatement); } }
SqlParser { public Statement createStatement(String sql) { return (Statement) invokeParser("statement", sql, PardSqlBaseParser::singleStatement); }  }
SqlParser { public Statement createStatement(String sql) { return (Statement) invokeParser("statement", sql, PardSqlBaseParser::singleStatement); }  Statement createStatement(String sql); Expression createExpression(String expression); }
SqlParser { public Statement createStatement(String sql) { return (Statement) invokeParser("statement", sql, PardSqlBaseParser::singleStatement); }  Statement createStatement(String sql); Expression createExpression(String expression);  }