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
The following commit(s) were added to refs/heads/branch-2.1 by this push:
new 646f49fb938 branch-2.1: [fix](Nereids) use StringLikeLiteral as
parameter type in constant folding #49413 (#49447)
646f49fb938 is described below
commit 646f49fb93805cbb95253d36ea3a14f679caa0f4
Author: github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Sat Mar 29 08:58:39 2025 +0800
branch-2.1: [fix](Nereids) use StringLikeLiteral as parameter type in
constant folding #49413 (#49447)
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 ed3e3894ecc..a5a24ac5ebd 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
@@ -403,7 +403,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());
@@ -467,7 +467,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");
@@ -609,7 +609,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]