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: [email protected]
For additional commands, e-mail: [email protected]