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

ruifengz 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 52ca921113b4 [MINOR][PYTHON][TESTS] Remove unnecessary hack imports
52ca921113b4 is described below

commit 52ca921113b4308e52298d4a9968da7257d21d00
Author: Ruifeng Zheng <ruife...@apache.org>
AuthorDate: Mon May 20 14:08:41 2024 +0800

    [MINOR][PYTHON][TESTS] Remove unnecessary hack imports
    
    ### What changes were proposed in this pull request?
    Remove unnecessary hack imports
    
    ### Why are the changes needed?
    it should be no longer needed after the introduction of parent Column class
    
    ### Does this PR introduce _any_ user-facing change?
    no, test only
    
    ### How was this patch tested?
    ci
    
    ### Was this patch authored or co-authored using generative AI tooling?
    no
    
    Closes #46656 from zhengruifeng/test_parity_column.
    
    Authored-by: Ruifeng Zheng <ruife...@apache.org>
    Signed-off-by: Ruifeng Zheng <ruife...@apache.org>
---
 python/pyspark/sql/tests/connect/test_parity_column.py | 10 ----------
 1 file changed, 10 deletions(-)

diff --git a/python/pyspark/sql/tests/connect/test_parity_column.py 
b/python/pyspark/sql/tests/connect/test_parity_column.py
index d02fb289b7d8..a109d2ba3b58 100644
--- a/python/pyspark/sql/tests/connect/test_parity_column.py
+++ b/python/pyspark/sql/tests/connect/test_parity_column.py
@@ -17,16 +17,6 @@
 
 import unittest
 
-from pyspark.testing.connectutils import should_test_connect
-
-if should_test_connect:
-    from pyspark import sql
-    from pyspark.sql.connect.column import Column
-
-    # This is a hack to make the Column instance comparison works in 
`ColumnTestsMixin`.
-    # e.g., `isinstance(col, pyspark.sql.Column)`.
-    sql.Column = Column
-
 from pyspark.sql.tests.test_column import ColumnTestsMixin
 from pyspark.testing.connectutils import ReusedConnectTestCase
 


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

Reply via email to