Github user srowen commented on a diff in the pull request:

    https://github.com/apache/spark/pull/14421#discussion_r72888618
  
    --- 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 --
    
    Yeah but this exposes a Java-specific API and always creates the object for 
all callers. It's minor either way, but that seems even less nice.


---
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]

Reply via email to