branch-2.1: [fix](nereids) fix tanh cosntant folding #52100 (#52527)

Cherry-picked from #52100

Co-authored-by: admiring_xm <86338598+wumeibanfa@users.noreply.github.com>
This commit is contained in:
github-actions[bot]
2025-07-02 10:21:10 +08:00
committed by GitHub
parent 794982a668
commit 06bbfd1eea
2 changed files with 4 additions and 1 deletions

View File

@ -1050,7 +1050,7 @@ public class NumericArithmetic {
/**
* tanh
*/
@ExecFunction(name = "cosh")
@ExecFunction(name = "tanh")
public static Expression tanh(DoubleLiteral first) {
return checkOutputBoundary(new DoubleLiteral(Math.tanh(first.getValue())));
}