/** * Parses a <code>SELECT</code> statement and reuses parser. * * @param sql sql to parse * @return A {@link org.apache.calcite.sql.SqlSelect} for a regular <code> * SELECT</code> statement; a {@link org.apache.calcite.sql.SqlBinaryOperator} * for a <code>UNION</code>, <code>INTERSECT</code>, or <code>EXCEPT</code>. * @throws SqlParseException if there is a parse error */ public SqlNode parseQuery(String sql) throws SqlParseException { parser.ReInit(new StringReader(sql)); return parseQuery(); }
/** * Parses a <code>SELECT</code> statement and reuses parser. * * @param sql sql to parse * @return A {@link org.apache.calcite.sql.SqlSelect} for a regular <code> * SELECT</code> statement; a {@link org.apache.calcite.sql.SqlBinaryOperator} * for a <code>UNION</code>, <code>INTERSECT</code>, or <code>EXCEPT</code>. * @throws SqlParseException if there is a parse error */ public SqlNode parseQuery(String sql) throws SqlParseException { parser.ReInit(new StringReader(sql)); return parseQuery(); }
Set<String> keywords, String name) { parserImpl.ReInit(new StringReader("1")); try { Object o = virtualCall(parserImpl, name);
Set<String> keywords, String name) { parserImpl.ReInit(new StringReader("1")); try { Object o = virtualCall(parserImpl, name);