BryanCutler commented on a change in pull request #27614: 
[SPARK-30861][PYTHON][SQL] Deprecate constructor of SQLContext and getOrCreate 
in SQLContext at PySpark
URL: https://github.com/apache/spark/pull/27614#discussion_r380863335
 
 

 ##########
 File path: python/pyspark/sql/tests/test_context.py
 ##########
 @@ -259,6 +260,23 @@ def range_frame_match():
         reload(window)
 
 
+class SQLContextTests(unittest.TestCase):
+
+    def test_get_or_create(self):
+        sc = None
+        sql_context = None
+        try:
+            sc = SparkContext('local[4]', "SQLContextTests")
+            sql_context = SQLContext.getOrCreate(sc)
+            assert(isinstance(sql_context, SQLContext))
+        finally:
+            SQLContext._instantiatedContext = None
 
 Review comment:
   This isn't necessary after #27610 right?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

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

Reply via email to