You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by gu...@apache.org on 2021/09/13 12:54:20 UTC
[spark] branch branch-3.1 updated: [SPARK-36738][SQL][DOC] Fixed
the wrong documentation on Cot API
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 <yu...@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 <yu...@nttdata.com>
Signed-off-by: Hyukjin Kwon <gu...@apache.org>
(cherry picked from commit 3747cfdb402955cc19c9a383713b569fc010db70)
Signed-off-by: Hyukjin Kwon <gu...@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-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org