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

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


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

commit 2f0efbd30cafde9586f4989202f0a026bb914c2c
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
    
    Fixed wrong documentation on Cot API
    
    [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`.
    
    No.
    
    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 931365f..7bfea0d 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
@@ -660,7 +660,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