Github user phalodi commented on a diff in the pull request:
https://github.com/apache/spark/pull/14421#discussion_r72888636
--- Diff: sql/core/src/main/scala/org/apache/spark/sql/SparkSession.scala
---
@@ -122,6 +122,14 @@ class SparkSession private(
val sqlContext: SQLContext = new SQLContext(this)
/**
+ * This is the interface through which the user can get
[[JavaSparkContext]]
+ *
+ * @since 2.0.0
+ */
+ @transient
+ val javaSparkContext: JavaSparkContext = new
JavaSparkContext(sparkContext)
--- End diff --
or we can add this code in spark.javaSparkContext so its more good for user
to use it because context is primary thing.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]