ChenMiaoi commented on code in PR #48476:
URL: https://github.com/apache/doris/pull/48476#discussion_r1976530375


##########
fe/fe-core/src/main/java/org/apache/doris/nereids/trees/expressions/functions/executable/NumericArithmetic.java:
##########
@@ -892,6 +894,17 @@ public static Expression sin(DoubleLiteral first) {
         return checkOutputBoundary(new 
DoubleLiteral(Math.sin(first.getValue())));
     }
 
+    /**
+     * sinh
+     */
+    @ExecFunction(name = "sinh")
+    public static Expression sinh(DoubleLiteral first) {
+        if (inputOutOfBound(first, Double.MIN_VALUE, Double.MAX_VALUE, false, 
false)) {

Review Comment:
   and I saw the `sin` function,its domain is the same as sinh's, so why does 
it need to check?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to