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 a36eb64f06f [fix](compile) fix compile error (#41085)
a36eb64f06f is described below
commit a36eb64f06f684f4d828129ba1c5b9f61a1aa4c1
Author: Yongqiang YANG <[email protected]>
AuthorDate: Sat Sep 21 09:16:24 2024 +0800
[fix](compile) fix compile error (#41085)
---
.../trees/expressions/functions/executable/ExecutableFunctions.java | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git
a/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/expressions/functions/executable/ExecutableFunctions.java
b/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/expressions/functions/executable/ExecutableFunctions.java
index 8c8e7951ff2..d54ea4681c5 100644
---
a/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/expressions/functions/executable/ExecutableFunctions.java
+++
b/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/expressions/functions/executable/ExecutableFunctions.java
@@ -105,6 +105,9 @@ public class ExecutableFunctions {
}
}
+ /**
+ * append_trailing_char_if_absent function
+ */
@ExecFunction(name = "append_trailing_char_if_absent", argTypes =
{"VARCHAR", "VARCHAR"}, returnType = "VARCHAR")
public static Expression appendTrailingIfCharAbsent(StringLikeLiteral
literal, StringLikeLiteral chr) {
if (chr.getValue().length() != 1) {
@@ -113,7 +116,7 @@ public class ExecutableFunctions {
if (literal.getValue().endsWith(chr.getValue())) {
return literal;
} else {
- return new VarcharLiteral( literal.getValue() + chr.getValue());
+ return new VarcharLiteral(literal.getValue() + chr.getValue());
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]