hvanhovell commented on a change in pull request #27266: [SPARK-22590][SQL] 
Copy sparkContext.localproperties to child thread in 
BroadcastExchangeExec.executionContext
URL: https://github.com/apache/spark/pull/27266#discussion_r371126830
 
 

 ##########
 File path: 
sql/core/src/main/scala/org/apache/spark/sql/execution/SQLExecution.scala
 ##########
 @@ -182,4 +182,20 @@ object SQLExecution {
       body
     }(exec)
   }
+
+  /**
+   * Wrap passed function to ensure necessary thread-local variables like
+   * SparkContext local properties are forwarded to execution thread
+   */
+  def withThreadLocalCaptured[T](
 
 Review comment:
   How about we make this also produce a (java) Future? If you do this then we 
can unify this method with the other `withThreadLocalCaptured` method.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to