You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by gu...@apache.org on 2022/08/20 00:45:40 UTC

[spark] branch master updated: [SPARK-40142][PYTHON][SQL][FOLLOWUP] Fix version of asin/mean and add alias note for mean

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

gurwls223 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 d7a85ad7fdd [SPARK-40142][PYTHON][SQL][FOLLOWUP] Fix version of asin/mean and add alias note for mean
d7a85ad7fdd is described below

commit d7a85ad7fddcd17b1a615802008f2025b03cc4ae
Author: Yikun Jiang <yi...@gmail.com>
AuthorDate: Sat Aug 20 09:45:22 2022 +0900

    [SPARK-40142][PYTHON][SQL][FOLLOWUP] Fix version of asin/mean and add alias note for mean
    
    ### What changes were proposed in this pull request?
     Fix version of asin/mean and add alias note for mean
    
    ### Why are the changes needed?
    
    https://github.com/apache/spark/pull/37575#discussion_r949917079
    
    According to: https://github.com/apache/spark/blob/f98f9f8566243a8a01edcaad3b847bbd2f52305b/sql/core/src/main/scala/org/apache/spark/sql/functions.scala#L705-L721
    
    https://github.com/apache/spark/blob/a9bb924480e4953457dad680c15ca346f71a26c8/sql/core/src/main/scala/org/apache/spark/sql/functions.scala#L1575-L1589
    
    the `asin`/`mean` were introduced in 1.4.0 (history commit: https://github.com/apache/spark/commit/4e6a310f8062102ea6a022fb21171f896c8296ae), so this PR try to fix it to right version.
    
    ### Does this PR introduce _any_ user-facing change?
    No
    
    ### How was this patch tested?
    CI passed
    
    Closes #37581 from Yikun/SPARK-40142-FOLLOWUP.
    
    Authored-by: Yikun Jiang <yi...@gmail.com>
    Signed-off-by: Hyukjin Kwon <gu...@apache.org>
---
 python/pyspark/sql/functions.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/python/pyspark/sql/functions.py b/python/pyspark/sql/functions.py
index df71969ccb7..7749b42c5f0 100644
--- a/python/pyspark/sql/functions.py
+++ b/python/pyspark/sql/functions.py
@@ -577,8 +577,9 @@ def avg(col: "ColumnOrName") -> Column:
 def mean(col: "ColumnOrName") -> Column:
     """
     Aggregate function: returns the average of the values in a group.
+    An alias of :func:`avg`.
 
-    .. versionadded:: 1.3.0
+    .. versionadded:: 1.4.0
 
     Parameters
     ----------
@@ -775,7 +776,7 @@ def asin(col: "ColumnOrName") -> Column:
     """
     Computes inverse sine of the input column.
 
-    .. versionadded:: 1.3.0
+    .. versionadded:: 1.4.0
 
     Parameters
     ----------


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