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 <y...@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**`
    
![image](https://github.com/user-attachments/assets/3a823aa7-a99c-4f7f-9b60-38b359420526)
    
    ### Does this PR introduce _any_ user-facing change?
    no
    
    ### How was this patch tested?
    
    
![image](https://github.com/user-attachments/assets/7b19c85b-291b-4356-9870-c81a88a2ca0d)
    
    
![image](https://github.com/user-attachments/assets/7fe28ab9-3c36-483d-a1a8-c2fc5b3cf934)
    
    ### Was this patch authored or co-authored using generative AI tooling?
    no
    
    Closes #50962 from yaooqinn/SPARK-52237.
    
    Authored-by: Kent Yao <y...@apache.org>
    Signed-off-by: Kent Yao <y...@apache.org>
    (cherry picked from commit 67860390bb7b26571628f289614c90670c285004)
    Signed-off-by: Kent Yao <y...@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-unsubscr...@spark.apache.org
For additional commands, e-mail: commits-h...@spark.apache.org

Reply via email to