Skip to content

Commit 1ecb766

Browse files
assert msg
1 parent 43ecd30 commit 1ecb766

File tree

1 file changed

+2
-1
lines changed
  • sql/catalyst/src/main/scala/org/apache/spark/sql/internal

1 file changed

+2
-1
lines changed

sql/catalyst/src/main/scala/org/apache/spark/sql/internal/SQLConf.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1091,7 +1091,8 @@ class SQLConf extends Serializable with Logging {
10911091

10921092
if (Utils.isTesting && SparkEnv.get != null) {
10931093
// assert that we're only accessing it on the driver.
1094-
assert(SparkEnv.get.executorId == SparkContext.DRIVER_IDENTIFIER)
1094+
assert(SparkEnv.get.executorId == SparkContext.DRIVER_IDENTIFIER,
1095+
"SQLConf should only be created and accessed on the driver.")
10951096
}
10961097

10971098
/** Only low degree of contention is expected for conf, thus NOT using ConcurrentHashMap. */

0 commit comments

Comments
 (0)