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

dongjoon 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 5dd19fcb8df [SPARK-41731][CONNECT][TESTS] Disable ANSI mode in 
pyspark.sql.tests.connect.test_connect_column
5dd19fcb8df is described below

commit 5dd19fcb8df634e6a2e254e8d2bcce9765402827
Author: Hyukjin Kwon <[email protected]>
AuthorDate: Fri Dec 30 18:18:02 2022 -0800

    [SPARK-41731][CONNECT][TESTS] Disable ANSI mode in 
pyspark.sql.tests.connect.test_connect_column
    
    ### What changes were proposed in this pull request?
    
    This PR proposes to disable ANSI mode in 
`pyspark.sql.tests.connect.test_connect_column` temporarily.
    
    This is a sort of a followup of https://github.com/apache/spark/pull/39241 
and https://github.com/apache/spark/pull/39276.
    
    ### Why are the changes needed?
    
    To recover the broken ASNI build 
https://github.com/apache/spark/actions/runs/3791006074/jobs/6446116146. This 
is similar with https://github.com/apache/spark/pull/39092.
    
    ### Does this PR introduce _any_ user-facing change?
    
    No, test-only.
    
    ### How was this patch tested?
    
    Manually tested via:
    
    ```bash
    SPARK_ANSI_SQL_MODE=true ./python/run-tests --testnames 
'pyspark.sql.tests.connect.test_connect_column'
    ```
    
    Closes #39317 from HyukjinKwon/SPARK-41731-followup.
    
    Authored-by: Hyukjin Kwon <[email protected]>
    Signed-off-by: Dongjoon Hyun <[email protected]>
---
 python/pyspark/sql/tests/connect/test_connect_column.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/python/pyspark/sql/tests/connect/test_connect_column.py 
b/python/pyspark/sql/tests/connect/test_connect_column.py
index 44b1d7f6a01..33ed1aded01 100644
--- a/python/pyspark/sql/tests/connect/test_connect_column.py
+++ b/python/pyspark/sql/tests/connect/test_connect_column.py
@@ -966,9 +966,13 @@ class SparkConnectTests(SparkConnectSQLTestCase):
 
 
 if __name__ == "__main__":
+    import os
     import unittest
     from pyspark.sql.tests.connect.test_connect_column import *  # noqa: F401
 
+    # TODO(SPARK-41794): Enable ANSI mode in this file.
+    os.environ["SPARK_ANSI_SQL_MODE"] = "false"
+
     try:
         import xmlrunner
 


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

Reply via email to