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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]