use of io.confluent.ksql.parser.tree.NotExpression in project ksql by confluentinc.
the class AstBuilder method visitLike.
@Override
public Node visitLike(SqlBaseParser.LikeContext context) {
Expression escape = null;
if (context.escape != null) {
escape = (Expression) visit(context.escape);
}
Expression result = new LikePredicate(getLocation(context), (Expression) visit(context.value), (Expression) visit(context.pattern), escape);
if (context.NOT() != null) {
result = new NotExpression(getLocation(context), result);
}
return result;
}
Aggregations