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

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


The following commit(s) were added to refs/heads/branch-3.0 by this push:
     new e26bac2d2e4 branch-3.0: [fix](Nereids) use StringLikeLiteral as 
parameter type in constant folding #49413 (#49446)
e26bac2d2e4 is described below

commit e26bac2d2e4a8397cbe35532e02d6ede4206800c
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Sun Mar 30 10:50:11 2025 +0800

    branch-3.0: [fix](Nereids) use StringLikeLiteral as parameter type in 
constant folding #49413 (#49446)
    
    Cherry-picked from #49413
    
    Co-authored-by: morrySnow <[email protected]>
---
 .../trees/expressions/functions/executable/StringArithmetic.java    | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git 
a/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/expressions/functions/executable/StringArithmetic.java
 
b/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/expressions/functions/executable/StringArithmetic.java
index e54eb745e2b..411f070d24d 100644
--- 
a/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/expressions/functions/executable/StringArithmetic.java
+++ 
b/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/expressions/functions/executable/StringArithmetic.java
@@ -402,7 +402,7 @@ public class StringArithmetic {
      * Executable arithmetic functions ConcatWs
      */
     @ExecFunction(name = "concat_ws")
-    public static Expression concatWsVarcharVarchar(StringLikeLiteral first, 
VarcharLiteral... second) {
+    public static Expression concatWsVarcharVarchar(StringLikeLiteral first, 
StringLikeLiteral... second) {
         StringBuilder sb = new StringBuilder();
         for (int i = 0; i < second.length - 1; i++) {
             sb.append(second[i].getValue());
@@ -469,7 +469,7 @@ public class StringArithmetic {
      * Executable arithmetic functions md5
      */
     @ExecFunction(name = "md5sum")
-    public static Expression md5Sum(VarcharLiteral... first) {
+    public static Expression md5Sum(StringLikeLiteral... first) {
         try {
             // Step 1: Create a MessageDigest instance for MD5
             MessageDigest md = MessageDigest.getInstance("MD5");
@@ -611,7 +611,7 @@ public class StringArithmetic {
      * Executable arithmetic functions field
      */
     @ExecFunction(name = "field")
-    public static Expression fieldVarchar(StringLikeLiteral first, 
VarcharLiteral... second) {
+    public static Expression fieldVarchar(StringLikeLiteral first, 
StringLikeLiteral... second) {
         return new IntegerLiteral(compareLiteral(first, second));
     }
 


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

Reply via email to