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

dongjoon 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 492064dd95e [SPARK-44822][PYTHON][FOLLOW-UP] Make Python UDTFs by 
default non-deterministic
492064dd95e is described below

commit 492064dd95eaa50bd30c363c97d3a703fd39c872
Author: allisonwang-db <[email protected]>
AuthorDate: Thu Aug 24 19:31:48 2023 -0700

    [SPARK-44822][PYTHON][FOLLOW-UP] Make Python UDTFs by default 
non-deterministic
    
    ### What changes were proposed in this pull request?
    
    This PR is a follow up for SPARK-44822. It modifies one more default value 
for Python UDTF to make it by default non-deterministic.
    
    ### Why are the changes needed?
    
    To prevent future issues.
    
    ### Does this PR introduce _any_ user-facing change?
    
    No
    
    ### How was this patch tested?
    
    Existing tests
    
    ### Was this patch authored or co-authored using generative AI tooling?
    
    No
    
    Closes #42665 from allisonwang-db/spark-44822-follow-up.
    
    Authored-by: allisonwang-db <[email protected]>
    Signed-off-by: Dongjoon Hyun <[email protected]>
---
 python/pyspark/sql/udtf.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/python/pyspark/sql/udtf.py b/python/pyspark/sql/udtf.py
index 833a2b92894..3658ce9a1d8 100644
--- a/python/pyspark/sql/udtf.py
+++ b/python/pyspark/sql/udtf.py
@@ -80,7 +80,7 @@ def _create_udtf(
     returnType: Optional[Union[StructType, str]],
     name: Optional[str] = None,
     evalType: int = PythonEvalType.SQL_TABLE_UDF,
-    deterministic: bool = True,
+    deterministic: bool = False,
 ) -> "UserDefinedTableFunction":
     """Create a Python UDTF with the given eval type."""
     udtf_obj = UserDefinedTableFunction(


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to