zero323 commented on a change in pull request #34892:
URL: https://github.com/apache/spark/pull/34892#discussion_r770700168



##########
File path: python/pyspark/sql/context.py
##########
@@ -168,6 +168,7 @@ def getOrCreate(cls: Type["SQLContext"], sc: SparkContext) 
-> "SQLContext":
             cls._instantiatedContext is None
             or SQLContext._instantiatedContext._sc._jsc is None  # type: 
ignore[union-attr]
         ):
+            assert sc._jvm is not None
             jsqlContext = (
                 sc._jvm.SparkSession.builder()  # type: ignore[attr-defined]
                 .sparkContext(sc._jsc.sc())  # type: ignore[attr-defined]

Review comment:
       This two should be obsolete as well.




-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



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

Reply via email to