This is an automated email from the ASF dual-hosted git repository. yiguolei pushed a commit to branch branch-2.1 in repository https://gitbox.apache.org/repos/asf/doris.git
commit 4f0414d13eb9db163c074991e4f28e9bfec98b60 Author: morrySnow <[email protected]> AuthorDate: Sat Feb 3 20:16:24 2024 +0800 [fix](Nereids) date >= simplify to > by mistake (#30765) --- .../doris/nereids/rules/expression/rules/DateFunctionRewrite.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fe/fe-core/src/main/java/org/apache/doris/nereids/rules/expression/rules/DateFunctionRewrite.java b/fe/fe-core/src/main/java/org/apache/doris/nereids/rules/expression/rules/DateFunctionRewrite.java index 688271cc07b..09f9b311f49 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/nereids/rules/expression/rules/DateFunctionRewrite.java +++ b/fe/fe-core/src/main/java/org/apache/doris/nereids/rules/expression/rules/DateFunctionRewrite.java @@ -96,14 +96,14 @@ public class DateFunctionRewrite extends AbstractExpressionRewriteRule { if (greaterThanEqual.left().child(0).getDataType() instanceof DateTimeType && greaterThanEqual.right() instanceof DateLiteral) { DateTimeLiteral newLiteral = ((DateLiteral) greaterThanEqual.right()).toBeginOfTheDay(); - return new GreaterThan(greaterThanEqual.left().child(0), newLiteral); + return new GreaterThanEqual(greaterThanEqual.left().child(0), newLiteral); } // V2 if (greaterThanEqual.left().child(0).getDataType() instanceof DateTimeV2Type && greaterThanEqual.right() instanceof DateV2Literal) { DateTimeV2Literal newLiteral = ((DateV2Literal) greaterThanEqual.right()).toBeginOfTheDay(); - return new GreaterThan(greaterThanEqual.left().child(0), newLiteral); + return new GreaterThanEqual(greaterThanEqual.left().child(0), newLiteral); } } return greaterThanEqual; --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
