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

xinrong 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 d57dc7de62a1 [SPARK-52948][PS] Enable test_np_spark_compat_frame under 
ANSI
d57dc7de62a1 is described below

commit d57dc7de62a113e01d93fc4d8bef837e9c361d99
Author: Xinrong Meng <xinr...@apache.org>
AuthorDate: Thu Jul 24 17:39:31 2025 -0700

    [SPARK-52948][PS] Enable test_np_spark_compat_frame under ANSI
    
    ### What changes were proposed in this pull request?
    Enable "pyspark.pandas.tests.test_numpy_compat 
NumPyCompatTests.test_np_spark_compat_frame" under ANSI
    
    ### Why are the changes needed?
    Enable pandas on Spark testing with ANSI mode on.
    
    ### Does this PR introduce _any_ user-facing change?
    No.
    
    ### How was this patch tested?
    Test change only.
    
    ```py
    SPARK_ANSI_SQL_MODE=true ./python/run-tests --python-executables=python3.11 
--testnames "pyspark.pandas.tests.test_numpy_compat 
NumPyCompatTests.test_np_spark_compat_frame"
    
    SPARK_ANSI_SQL_MODE=false ./python/run-tests 
--python-executables=python3.11 --testnames 
"pyspark.pandas.tests.test_numpy_compat 
NumPyCompatTests.test_np_spark_compat_frame"
    ```
    
    ### Was this patch authored or co-authored using generative AI tooling?
    No.
    
    Closes #51656 from xinrong-meng/npcompat.
    
    Authored-by: Xinrong Meng <xinr...@apache.org>
    Signed-off-by: Xinrong Meng <xinr...@apache.org>
---
 python/pyspark/pandas/tests/test_numpy_compat.py | 2 --
 1 file changed, 2 deletions(-)

diff --git a/python/pyspark/pandas/tests/test_numpy_compat.py 
b/python/pyspark/pandas/tests/test_numpy_compat.py
index 39786c6ac228..03324c4c85ae 100644
--- a/python/pyspark/pandas/tests/test_numpy_compat.py
+++ b/python/pyspark/pandas/tests/test_numpy_compat.py
@@ -23,7 +23,6 @@ from pyspark import pandas as ps
 from pyspark.pandas import set_option, reset_option
 from pyspark.testing.pandasutils import PandasOnSparkTestCase
 from pyspark.testing.sqlutils import SQLTestUtils
-from pyspark.testing.utils import is_ansi_mode_test, 
ansi_mode_not_supported_message
 
 
 class NumPyCompatTestsMixin:
@@ -132,7 +131,6 @@ class NumPyCompatTestsMixin:
         finally:
             reset_option("compute.ops_on_diff_frames")
 
-    @unittest.skipIf(is_ansi_mode_test, ansi_mode_not_supported_message)
     def test_np_spark_compat_frame(self):
         from pyspark.pandas.numpy_compat import unary_np_spark_mappings, 
binary_np_spark_mappings
 


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

Reply via email to