This is an automated email from the ASF dual-hosted git repository.

morrysnow pushed a commit to branch branch-2.0
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-2.0 by this push:
     new a829c63b6e9 [fix](Nereids) date >= simplify to > by mistake (#30768)
a829c63b6e9 is described below

commit a829c63b6e9eecee8789f353bd12840fcc7f05e6
Author: morrySnow <101034200+morrys...@users.noreply.github.com>
AuthorDate: Fri Feb 2 23:20:49 2024 +0800

    [fix](Nereids) date >= simplify to > by mistake (#30768)
    
    pick from master #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: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to