You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by sr...@apache.org on 2023/01/11 22:39:39 UTC

[spark] branch master updated: [SPARK-41047][SQL] Improve docs for round

This is an automated email from the ASF dual-hosted git repository.

srowen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/spark.git


The following commit(s) were added to refs/heads/master by this push:
     new 073b23ef2a9 [SPARK-41047][SQL] Improve docs for round
073b23ef2a9 is described below

commit 073b23ef2a982370e0ff8836d55361bca3320e37
Author: panbingkun <pb...@gmail.com>
AuthorDate: Wed Jan 11 16:39:25 2023 -0600

    [SPARK-41047][SQL] Improve docs for round
    
    ### What changes were proposed in this pull request?
    The pr aims to improve docs for round.
    
    ### Why are the changes needed?
    Reduce user misunderstanding.
    It is not necessary to enumerate the usage of legacy in the example.
    
    ### Does this PR introduce _any_ user-facing change?
    No.
    
    ### How was this patch tested?
    Pass GA.
    Manual check.
    
    Closes #39511 from panbingkun/SPARK-41047.
    
    Authored-by: panbingkun <pb...@gmail.com>
    Signed-off-by: Sean Owen <sr...@gmail.com>
---
 .../org/apache/spark/sql/catalyst/expressions/mathExpressions.scala     | 2 --
 1 file changed, 2 deletions(-)

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 16f081a0cc2..9ffc148180a 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
@@ -1644,8 +1644,6 @@ abstract class RoundBase(child: Expression, scale: Expression,
     Examples:
       > SELECT _FUNC_(2.5, 0);
        3
-      > SELECT _FUNC_(25, -1);
-       30
   """,
   since = "1.5.0",
   group = "math_funcs")


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org