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

gurwls223 pushed a commit to branch branch-3.5
in repository https://gitbox.apache.org/repos/asf/spark.git


The following commit(s) were added to refs/heads/branch-3.5 by this push:
     new f67b23535ef [SPARK-43964][PYTHON][TESTS][FOLLOWUP] Skip a test using 
pandas when pandas is not available
f67b23535ef is described below

commit f67b23535eff84b83357333c55ff69ae706192a0
Author: Takuya UESHIN <[email protected]>
AuthorDate: Tue Jul 25 12:03:36 2023 +0900

    [SPARK-43964][PYTHON][TESTS][FOLLOWUP] Skip a test using pandas when pandas 
is not available
    
    ### What changes were proposed in this pull request?
    
    This is a follow-up of apache/spark#41867.
    
    Skips a test using pandas when pandas is not available.
    
    ### Why are the changes needed?
    
    There is a test using pandas, but there is a case where pandas is not 
available.
    
    ### Does this PR introduce _any_ user-facing change?
    
    No.
    
    ### How was this patch tested?
    
    Manually.
    
    Closes #42131 from ueshin/issues/SPARK-43964/skip.
    
    Authored-by: Takuya UESHIN <[email protected]>
    Signed-off-by: Hyukjin Kwon <[email protected]>
    (cherry picked from commit b930f7a1e8145a4f22ee047cee24e9a5f94d72ba)
    Signed-off-by: Hyukjin Kwon <[email protected]>
---
 python/pyspark/sql/tests/test_udtf.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/python/pyspark/sql/tests/test_udtf.py 
b/python/pyspark/sql/tests/test_udtf.py
index 2c76d2f7e15..bb84b9d836a 100644
--- a/python/pyspark/sql/tests/test_udtf.py
+++ b/python/pyspark/sql/tests/test_udtf.py
@@ -466,6 +466,7 @@ class BaseUDTFTestsMixin:
 
         self.assertEqual(TestUDTF(lit(1)).collect(), [Row(x={1: "1"})])
 
+    @unittest.skipIf(not have_pandas, pandas_requirement_message)
     def test_udtf_with_pandas_input_type(self):
         import pandas as pd
 


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

Reply via email to