You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by gatorsmile <gi...@git.apache.org> on 2018/04/04 00:11:31 UTC
[GitHub] spark pull request #20927: [SPARK-23809][SQL] Active SparkSession should be ...
Github user gatorsmile commented on a diff in the pull request:
https://github.com/apache/spark/pull/20927#discussion_r178996716
--- Diff: sql/core/src/main/scala/org/apache/spark/sql/SparkSession.scala ---
@@ -1027,6 +1028,17 @@ object SparkSession {
*/
def getDefaultSession: Option[SparkSession] = Option(defaultSession.get)
+ /**
+ * Returns the currently active SparkSession, otherwise the default one. If there is no default
+ * SparkSession, throws an exception.
+ *
+ * @since 2.4.0
--- End diff --
@ericl Could you submit a PR to 4.x without this new API?
---
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org