Skip to content

Commit

Permalink
[SPARK-20360][PYTHON] Provide catalogImplementation in output
Browse files Browse the repository at this point in the history
  • Loading branch information
rgbkrk committed Apr 18, 2017
1 parent a2acd97 commit 75c9880
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion python/pyspark/sql/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,15 @@ def __init__(self, sparkContext, jsparkSession=None):
SparkSession._instantiatedSession = self

def _repr_html_(self):
return self.sparkContext._repr_html_()
return """
<div>
<p><b>SparkSession - {catalogImplementation}</b></p>
{sc_HTML}
</div>
""".format(
catalogImplementation=self.conf.get("spark.sql.catalogImplementation"),
sc_HTML=self.sparkContext._repr_html_()
)

@since(2.0)
def newSession(self):
Expand Down

0 comments on commit 75c9880

Please sign in to comment.