From 349f5e3935494df568ff37283b3d6a585a1286a5 Mon Sep 17 00:00:00 2001 From: Yongqiang YANG Date: Sat, 21 Sep 2024 09:15:09 +0800 Subject: [PATCH] [fix](compile) fix compile error --- .../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 8c8e7951ff2630..d54ea4681c514f 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 static Expression acos(DoubleLiteral literal) { } } + /** + * 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 static Expression appendTrailingIfCharAbsent(StringLikeLiteral literal, S if (literal.getValue().endsWith(chr.getValue())) { return literal; } else { - return new VarcharLiteral( literal.getValue() + chr.getValue()); + return new VarcharLiteral(literal.getValue() + chr.getValue()); } }