use of com.hazelcast.jet.sql.impl.validate.UnsupportedOperationVisitor in project hazelcast by hazelcast.
the class QueryParser method parse0.
private QueryParseResult parse0(String sql) throws SqlParseException {
SqlParser parser = SqlParser.create(sql, CONFIG);
SqlNodeList statements = parser.parseStmtList();
if (statements.size() != 1) {
throw QueryException.error(SqlErrorCode.PARSING, "The command must contain a single statement");
}
SqlNode topNode = statements.get(0);
SqlNode node = validator.validate(topNode);
SqlVisitor<Void> visitor = new UnsupportedOperationVisitor();
node.accept(visitor);
return new QueryParseResult(node, new QueryParameterMetadata(validator.getParameterConverters(node)), validator.isInfiniteRows());
}
Aggregations