This is an automated email from the ASF dual-hosted git repository.
yiguolei pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new 66c2b2915f4 [fix](Nereids) date >= simplify to > by mistake (#30765)
66c2b2915f4 is described below
commit 66c2b2915f4a7390c118d8b53ab7a15d1f95b9bb
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]