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: [email protected]
For additional commands, e-mail: [email protected]