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()); } }