You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by ya...@apache.org on 2025/05/21 05:37:53 UTC
(spark) branch branch-4.0 updated: [SPARK-52237][DOCS] Fix the documentation of hypot function
This is an automated email from the ASF dual-hosted git repository.
yao pushed a commit to branch branch-4.0
in repository https://gitbox.apache.org/repos/asf/spark.git
The following commit(s) were added to refs/heads/branch-4.0 by this push:
new 72ef6b3579a4 [SPARK-52237][DOCS] Fix the documentation of hypot function
72ef6b3579a4 is described below
commit 72ef6b3579a4fbfcb0c7731748c7ebd41c0450ba
Author: Kent Yao <ya...@apache.org>
AuthorDate: Wed May 21 13:37:25 2025 +0800
[SPARK-52237][DOCS] Fix the documentation of hypot function
### What changes were proposed in this pull request?
This PR fixes the documentation of hypot function
### Why are the changes needed?
These two square marks conflict emphasis signs of Markdown.
`**XX**`

### Does this PR introduce _any_ user-facing change?
no
### How was this patch tested?


### Was this patch authored or co-authored using generative AI tooling?
no
Closes #50962 from yaooqinn/SPARK-52237.
Authored-by: Kent Yao <ya...@apache.org>
Signed-off-by: Kent Yao <ya...@apache.org>
(cherry picked from commit 67860390bb7b26571628f289614c90670c285004)
Signed-off-by: Kent Yao <ya...@apache.org>
---
.../org/apache/spark/sql/catalyst/expressions/mathExpressions.scala | 4 +++-
1 file changed, 3 insertions(+), 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 6233f4613b34..9db2ac7f9b04 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
@@ -1383,8 +1383,10 @@ case class ShiftRightUnsigned(left: Expression, right: Expression) extends BitSh
copy(left = newLeft, right = newRight)
}
+// scalastyle:off nonascii
@ExpressionDescription(
- usage = "_FUNC_(expr1, expr2) - Returns sqrt(`expr1`**2 + `expr2`**2).",
+ usage = "_FUNC_(expr1, expr2) - Returns sqrt(`expr1`\u00B2 + `expr2`\u00B2).",
+ // scalastyle:on nonascii
examples = """
Examples:
> SELECT _FUNC_(3, 4);
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org