Github user zero323 commented on the issue:

    https://github.com/apache/spark/pull/16536
  
    @holdenk I have one more suggestion. Shouldn't we replace
    
    ```python
        def _create_judf(self):
            from pyspark.sql import SparkSession
    
            sc = SparkContext.getOrCreate()
            spark = SparkSession.builder.getOrCreate()
    ```
    
    with 
    
    ```python
        def _create_judf(self):
            from pyspark.sql import SparkSession
    
            spark = SparkSession.builder.getOrCreate()
            sc = spark.sparkContext
    ```
    
    I left it as is but I think it could be cleaner. 
    



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

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

Reply via email to