You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by ru...@apache.org on 2023/09/14 10:23:58 UTC

[spark] branch master updated: [MINOR][PYTHON][DOCS] Fix default value of parameter `barrier` in MapInXXX

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

ruifengz 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 e1d2372b891 [MINOR][PYTHON][DOCS] Fix default value of parameter `barrier` in MapInXXX
e1d2372b891 is described below

commit e1d2372b8916741fe199ee7b154e53af1eb1ba5a
Author: Ruifeng Zheng <ru...@apache.org>
AuthorDate: Thu Sep 14 18:23:38 2023 +0800

    [MINOR][PYTHON][DOCS] Fix default value of parameter `barrier` in MapInXXX
    
    ### What changes were proposed in this pull request?
    Fix default value of parameter `barrier`
    
    ### Why are the changes needed?
    they default to `False`
    
    ### Does this PR introduce _any_ user-facing change?
    yes
    
    ### How was this patch tested?
    CI
    
    ### Was this patch authored or co-authored using generative AI tooling?
    NO
    
    Closes #42923 from zhengruifeng/45114_followup.
    
    Authored-by: Ruifeng Zheng <ru...@apache.org>
    Signed-off-by: Ruifeng Zheng <ru...@apache.org>
---
 python/pyspark/sql/pandas/map_ops.py | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/python/pyspark/sql/pandas/map_ops.py b/python/pyspark/sql/pandas/map_ops.py
index bc26fdede28..710fc8a9a37 100644
--- a/python/pyspark/sql/pandas/map_ops.py
+++ b/python/pyspark/sql/pandas/map_ops.py
@@ -60,11 +60,10 @@ class PandasMapOpsMixin:
         schema : :class:`pyspark.sql.types.DataType` or str
             the return type of the `func` in PySpark. The value can be either a
             :class:`pyspark.sql.types.DataType` object or a DDL-formatted type string.
-        barrier : bool, optional, default True
+        barrier : bool, optional, default False
             Use barrier mode execution.
 
-            .. versionchanged: 3.5.0
-                Added ``barrier`` argument.
+            .. versionadded: 3.5.0
 
         Examples
         --------
@@ -139,11 +138,10 @@ class PandasMapOpsMixin:
         schema : :class:`pyspark.sql.types.DataType` or str
             the return type of the `func` in PySpark. The value can be either a
             :class:`pyspark.sql.types.DataType` object or a DDL-formatted type string.
-        barrier : bool, optional, default True
+        barrier : bool, optional, default False
             Use barrier mode execution.
 
-            .. versionchanged: 3.5.0
-                Added ``barrier`` argument.
+            .. versionadded: 3.5.0
 
         Examples
         --------


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