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

dataroaring pushed a commit to branch branch-1.1-lts
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-1.1-lts by this push:
     new 23d6e345b8 [Fix](1.1-lts) Fix FE format (#12931)
23d6e345b8 is described below

commit 23d6e345b8c1fbd470e5a8182ae99b234c797780
Author: Gabriel <[email protected]>
AuthorDate: Fri Sep 23 23:24:24 2022 +0800

    [Fix](1.1-lts) Fix FE format (#12931)
---
 .../java/org/apache/doris/analysis/TimestampArithmeticExpr.java    | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git 
a/fe/fe-core/src/main/java/org/apache/doris/analysis/TimestampArithmeticExpr.java
 
b/fe/fe-core/src/main/java/org/apache/doris/analysis/TimestampArithmeticExpr.java
index 26b0a82425..4330130c4f 100644
--- 
a/fe/fe-core/src/main/java/org/apache/doris/analysis/TimestampArithmeticExpr.java
+++ 
b/fe/fe-core/src/main/java/org/apache/doris/analysis/TimestampArithmeticExpr.java
@@ -214,7 +214,7 @@ public class TimestampArithmeticExpr extends Expr {
         }
 
         Type[] childrenTypes = collectChildReturnTypes();
-        fn = getBuiltinFunction(funcOpName.toLowerCase(), childrenTypes,
+        fn = getBuiltinFunction(analyzer, funcOpName.toLowerCase(), 
childrenTypes,
                 Function.CompareMode.IS_NONSTRICT_SUPERTYPE_OF);
         Preconditions.checkArgument(fn != null);
         Type[] argTypes = fn.getArgs();
@@ -223,11 +223,12 @@ public class TimestampArithmeticExpr extends Expr {
             for (int i = 0; i < childrenTypes.length; ++i) {
                 // For varargs, we must compare with the last type in 
callArgs.argTypes.
                 int ix = Math.min(argTypes.length - 1, i);
-                if (!childrenTypes[i].matchesType(argTypes[ix]) && !(
-                        childrenTypes[i].isDateType() && 
argTypes[ix].isDateType())) {
+                if (!childrenTypes[i].matchesType(argTypes[ix]) &&
+                        !(childrenTypes[i].isDateType() && 
argTypes[ix].isDateType())) {
                     uncheckedCastChild(argTypes[ix], i);
                 }
             }
+        }
         LOG.debug("fn is {} name is {}", fn, funcOpName);
     }
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to