Github user phalodi commented on a diff in the pull request:
https://github.com/apache/spark/pull/14421#discussion_r72888602
--- 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 --
But when user write code in java and he/she wants the JavaSparkConext, then
need to get the sparkContext and create the java context with JavaSparkContext
method fromSparkContext(sc) so its more good to provide directly
JavaSparkContext from spark session to the user.
---
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]