[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.akutsu@nttdata.com>
Signed-off-by: Hyukjin Kwon <gurwls223@apache.org>
(cherry picked from commit 3747cfdb40)
Signed-off-by: Hyukjin Kwon <gurwls223@apache.org>
This commit is contained in:
Yuto Akutsu 2021-09-13 21:51:29 +09:00 committed by Hyukjin Kwon
parent dad566c1f2
commit b043ee4de7

View file

@ -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: