Skip to content

Commit

Permalink
Add Python Create jsparkSession to JVM's defaultSession
Browse files Browse the repository at this point in the history
  • Loading branch information
jerryshao committed Jan 26, 2018
1 parent 4e7b490 commit d9189ad
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions python/pyspark/sql/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ def __init__(self, sparkContext, jsparkSession=None):
if SparkSession._instantiatedSession is None \
or SparkSession._instantiatedSession._sc._jsc is None:
SparkSession._instantiatedSession = self
self._jvm.org.apache.spark.sql.SparkSession.setDefaultSession(self._jsparkSession)

def _repr_html_(self):
return """
Expand Down

0 comments on commit d9189ad

Please sign in to comment.