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

    https://github.com/apache/spark/pull/20136#discussion_r159252410
  
    --- Diff: 
sql/catalyst/src/main/scala/org/apache/spark/sql/internal/SQLConf.scala ---
    @@ -1087,6 +1089,11 @@ object SQLConf {
     class SQLConf extends Serializable with Logging {
       import SQLConf._
     
    +  if (Utils.isTesting && SparkEnv.get != null) {
    +    // assert that we're only accessing it on the driver.
    +    assert(SparkEnv.get.executorId == SparkContext.DRIVER_IDENTIFIER)
    --- End diff --
    
    Also with a reasonable error message?


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to