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 0030fe0ad34c [SPARK-50200][PYTHON] Remove unused `have_numpy` testing 
utility from `sqlutils.py`
0030fe0ad34c is described below

commit 0030fe0ad34c11c4c792b503b1b8bac6b90e0b16
Author: Xinrong Meng <[email protected]>
AuthorDate: Fri Nov 1 14:54:10 2024 +0900

    [SPARK-50200][PYTHON] Remove unused `have_numpy` testing utility from 
`sqlutils.py`
    
    ### What changes were proposed in this pull request?
    Remove unused `have_numpy` testing utility.
    
    ### Why are the changes needed?
    Code cleaning.
    
    ### 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 #48734 from xinrong-meng/plot_test_dep.
    
    Authored-by: Xinrong Meng <[email protected]>
    Signed-off-by: Hyukjin Kwon <[email protected]>
---
 python/pyspark/testing/sqlutils.py | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/python/pyspark/testing/sqlutils.py 
b/python/pyspark/testing/sqlutils.py
index dab382c37f42..c833abfb805d 100644
--- a/python/pyspark/testing/sqlutils.py
+++ b/python/pyspark/testing/sqlutils.py
@@ -55,12 +55,6 @@ except ImportError as e:
     plotly_requirement_message = str(e)
 have_plotly = plotly_requirement_message is None
 
-numpy_requirement_message = None
-try:
-    import numpy
-except ImportError as e:
-    numpy_requirement_message = str(e)
-have_numpy = numpy_requirement_message is None
 
 from pyspark.sql import SparkSession
 from pyspark.sql.types import ArrayType, DoubleType, UserDefinedType, Row
@@ -70,7 +64,6 @@ from pyspark.testing.utils import ReusedPySparkTestCase, 
PySparkErrorTestUtils
 have_pandas = pandas_requirement_message is None
 have_pyarrow = pyarrow_requirement_message is None
 test_compiled = test_not_compiled_message is None
-have_numpy = numpy_requirement_message is None
 
 
 class UTCOffsetTimezone(datetime.tzinfo):


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

Reply via email to