xzj7019 commented on code in PR #43344:
URL: https://github.com/apache/doris/pull/43344#discussion_r1830542923


##########
fe/fe-core/src/main/java/org/apache/doris/nereids/parser/LogicalPlanBuilder.java:
##########
@@ -3495,10 +3495,16 @@ private Expression withPredicate(Expression 
valueExpression, PredicateContext ct
             Expression outExpression;
             switch (ctx.kind.getType()) {
                 case DorisParser.BETWEEN:
-                    outExpression = new And(
-                            new GreaterThanEqual(valueExpression, 
getExpression(ctx.lower)),
-                            new LessThanEqual(valueExpression, 
getExpression(ctx.upper))
-                    );
+                    Expression lower = getExpression(ctx.lower);

Review Comment:
   support the following case: dt (date type)BETWEEN '2024-08-19' AND       
'2024-08-19 14:44:28' =>  BETWEEN '2024-08-19' AND  '2024-08-19' => dt = 
'2024-08-19' 



-- 
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