@Test public void testCreateTableHPList() { String sql = "CREATE TABLE orders_range\n" + "(\n" + "id INT PRIMARY KEY,\n" + "name VARCHAR(30),\n" + "order_date DATE\n" + ") PARTITION BY LIST\n" + "(\n" + "p0 id IN (1, 2, 3) AND name IN ('alice', 'bob') ON node0,\n" + "p1 id IN (4, 5) ON node1,\n" + "p2 id IN (8, 9, 10)\n" + ")"; Statement statement = parser.createStatement(sql); System.out.println(statement.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);  }