Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
suxiaogang223 committed Sep 18, 2024
1 parent 890f386 commit 89d7be2
Showing 1 changed file with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,15 +103,6 @@ public static Expression acos(DoubleLiteral literal) {
}
}

@ExecFunction(name = "append_trailing_char_if_absent")
public static Expression appendTrailingIfCharAbsent(StringLikeLiteral literal, StringLikeLiteral chr) {
if (literal.getValue().length() != 1) {
return null;
}
return literal.getValue().endsWith(chr.getValue()) ? literal
: new VarcharLiteral(literal.getValue() + chr.getValue());
}

@ExecFunction(name = "e")
public static Expression e() { // CHECKSTYLE IGNORE THIS LINE
return new DoubleLiteral(Math.E);
Expand Down

0 comments on commit 89d7be2

Please sign in to comment.