This is an automated email from the ASF dual-hosted git repository.

gurwls223 pushed a commit to branch branch-3.2
in repository https://gitbox.apache.org/repos/asf/spark.git


The following commit(s) were added to refs/heads/branch-3.2 by this push:
     new b043ee4  [SPARK-36738][SQL][DOC] Fixed the wrong documentation on Cot 
API
b043ee4 is described below

commit b043ee4de7ab59584e85191cacb2912bc866e6f9
Author: Yuto Akutsu <yuto.aku...@nttdata.com>
AuthorDate: Mon Sep 13 21:51:29 2021 +0900

    [SPARK-36738][SQL][DOC] Fixed the wrong documentation on Cot API
    
    ### What changes were proposed in this pull request?
    
    Fixed wrong documentation on Cot API
    
    ### Why are the changes needed?
    
    [Doc](https://spark.apache.org/docs/latest/api/sql/index.html#cot) says 
`1/java.lang.Math.cot` but it should be `1/java.lang.Math.tan`.
    
    ### Does this PR introduce _any_ user-facing change?
    
    No.
    
    ### How was this patch tested?
    
    Manual check.
    
    Closes #33978 from yutoacts/SPARK-36738.
    
    Authored-by: Yuto Akutsu <yuto.aku...@nttdata.com>
    Signed-off-by: Hyukjin Kwon <gurwls...@apache.org>
    (cherry picked from commit 3747cfdb402955cc19c9a383713b569fc010db70)
    Signed-off-by: Hyukjin Kwon <gurwls...@apache.org>
---
 .../org/apache/spark/sql/catalyst/expressions/mathExpressions.scala     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/mathExpressions.scala
 
b/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/mathExpressions.scala
index 2466940..d4b86d1 100644
--- 
a/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/mathExpressions.scala
+++ 
b/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/mathExpressions.scala
@@ -731,7 +731,7 @@ case class Tan(child: Expression) extends 
UnaryMathExpression(math.tan, "TAN") {
 
 @ExpressionDescription(
   usage = """
-    _FUNC_(expr) - Returns the cotangent of `expr`, as if computed by 
`1/java.lang.Math._FUNC_`.
+    _FUNC_(expr) - Returns the cotangent of `expr`, as if computed by 
`1/java.lang.Math.tan`.
   """,
   arguments = """
     Arguments:

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

Reply via email to