yinzhijian commented on code in PR #10411:
URL: https://github.com/apache/doris/pull/10411#discussion_r909289024


##########
fe/fe-core/src/main/java/org/apache/doris/nereids/parser/LogicalPlanBuilder.java:
##########
@@ -576,6 +582,38 @@ public Expression withBetween(PredicateContext ctx, 
Expression e) {
         return isNotBetween ? new Not(betweenPredicate) : betweenPredicate;
     }
 
+    /**
+     * Generate like predicate.
+     *
+     * @param ctx PredicateContext
+     * @param e Expression
+     * @return Expression
+     */
+    public Expression withLike(PredicateContext ctx, Expression e) {
+        boolean isNotLike = ctx.NOT() != null ? true : false;
+        LikePredicate likePredicate = new LikePredicate(
+                e,
+                expression(ctx.pattern)
+        );
+        return isNotLike ? new Not(likePredicate) : likePredicate;

Review Comment:
   done



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to