This is an automated email from the ASF dual-hosted git repository.
yao pushed a commit to branch branch-3.5
in repository https://gitbox.apache.org/repos/asf/spark.git
The following commit(s) were added to refs/heads/branch-3.5 by this push:
new babcd1ffa30a [SPARK-52237][DOCS] Fix the documentation of hypot
function
babcd1ffa30a is described below
commit babcd1ffa30a120b9765ed3739b2960fb780d758
Author: Kent Yao <[email protected]>
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 <[email protected]>
Signed-off-by: Kent Yao <[email protected]>
(cherry picked from commit 67860390bb7b26571628f289614c90670c285004)
Signed-off-by: Kent Yao <[email protected]>
---
.../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 b9a2cb348e38..2ce081537352 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
@@ -1374,8 +1374,10 @@ case class ShiftRightUnsigned(left: Expression, right:
Expression)
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: [email protected]
For additional commands, e-mail: [email protected]