Github user HyukjinKwon commented on a diff in the pull request:

    https://github.com/apache/spark/pull/21990#discussion_r213010408
  
    --- Diff: python/pyspark/sql/session.py ---
    @@ -218,7 +218,9 @@ def __init__(self, sparkContext, jsparkSession=None):
                             .sparkContext().isStopped():
                     jsparkSession = 
self._jvm.SparkSession.getDefaultSession().get()
                 else:
    -                jsparkSession = self._jvm.SparkSession(self._jsc.sc())
    +                jsparkSession = self._jvm.SparkSession.builder() \
    --- End diff --
    
    @RussellSpitzer, have you maybe had a chance to take a look and see if we 
can deduplicate some logics comparing to Scala's `getOrCreate`? I am suggesting 
this since now it looks the code path duplicates some logics there.


---

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

Reply via email to