Skip to content

Commit b7277e0

Browse files
committed
[SPARK-19495][SQL] Make SQLConf slightly more extensible
## What changes were proposed in this pull request? This pull request makes SQLConf slightly more extensible by removing the visibility limitations on the build* functions. ## How was this patch tested? N/A - there are no logic changes and everything should be covered by existing unit tests. Author: Reynold Xin <[email protected]> Closes #16835 from rxin/SPARK-19495.
1 parent 7a7ce27 commit b7277e0

File tree

5 files changed

+139
-137
lines changed

5 files changed

+139
-137
lines changed

sql/core/src/main/scala/org/apache/spark/sql/RuntimeConfig.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ package org.apache.spark.sql
1919

2020
import org.apache.spark.annotation.InterfaceStability
2121
import org.apache.spark.internal.config.{ConfigEntry, OptionalConfigEntry}
22-
import org.apache.spark.sql.internal.{SQLConf, StaticSQLConf}
22+
import org.apache.spark.sql.internal.SQLConf
2323

2424

2525
/**
@@ -140,7 +140,7 @@ class RuntimeConfig private[sql](sqlConf: SQLConf = new SQLConf) {
140140
}
141141

142142
private def requireNonStaticConf(key: String): Unit = {
143-
if (StaticSQLConf.globalConfKeys.contains(key)) {
143+
if (SQLConf.staticConfKeys.contains(key)) {
144144
throw new AnalysisException(s"Cannot modify the value of a static config: $key")
145145
}
146146
}

0 commit comments

Comments
 (0)