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

    https://github.com/apache/spark/pull/5237#discussion_r28199689
  
    --- Diff: 
sql/core/src/main/scala/org/apache/spark/sql/execution/Exchange.scala ---
    @@ -46,6 +46,7 @@ case class Exchange(newPartitioning: Partitioning, child: 
SparkPlan) extends Una
         
child.sqlContext.sparkContext.conf.getInt("spark.shuffle.sort.bypassMergeThreshold",
 200)
     
       override def execute(): RDD[Row] = attachTree(this , "execute") {
    +    lazy val sparkConf = Option(SparkEnv.get).map(_.conf).getOrElse(new 
SparkConf())
    --- End diff --
    
    All nodes should have a `sqlContext` which should have a `sparkContext`.  
Can we just get this from there instead?


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