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 2440b6b7317 [SPARK-42224][FOLLOWUP] Raise `PySparkTypeError` instead 
of `TypeError`
2440b6b7317 is described below

commit 2440b6b731758308d0db88c10edb5b9a71d81c92
Author: itholic <haejoon....@databricks.com>
AuthorDate: Sun Jan 29 16:19:26 2023 +0900

    [SPARK-42224][FOLLOWUP] Raise `PySparkTypeError` instead of `TypeError`
    
    ### What changes were proposed in this pull request?
    
    This followups for https://github.com/apache/spark/pull/39782.
    
    ### Why are the changes needed?
    
    Found incorrect fix in original PR.
    
    We should use `PySparkTypeError` for testing rather than `TypeError`
    
    ### Does this PR introduce _any_ user-facing change?
    
    No.
    
    ### How was this patch tested?
    
    Updated UT and manually tested.
    
    Closes #39787 from itholic/SPARK-42225-followup.
    
    Authored-by: itholic <haejoon....@databricks.com>
    Signed-off-by: Hyukjin Kwon <gurwls...@apache.org>
---
 python/pyspark/sql/tests/test_functions.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/python/pyspark/sql/tests/test_functions.py 
b/python/pyspark/sql/tests/test_functions.py
index 6af45124db8..4cbef4b5387 100644
--- a/python/pyspark/sql/tests/test_functions.py
+++ b/python/pyspark/sql/tests/test_functions.py
@@ -1021,7 +1021,7 @@ class FunctionsTestsMixin:
         with self.assertRaisesRegex((Py4JJavaError, SparkConnectException), 
"2000000"):
             df.select(assert_true(df.id < 2, df.id * 
1e6)).toDF("val").collect()
 
-        with self.assertRaises(TypeError) as pe:
+        with self.assertRaises(PySparkTypeError) as pe:
             df.select(assert_true(df.id < 2, 5))
 
         self.check_error(


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

Reply via email to