Skip to content

Commit d52ff4a

Browse files
HyukjinKwondongjoon-hyun
authored andcommitted
[SPARK-25694][SQL][FOLLOW-UP] Move 'spark.sql.defaultUrlStreamHandlerFactory.enabled' into StaticSQLConf.scala
This PR is a followup of #26530 and proposes to move the configuration `spark.sql.defaultUrlStreamHandlerFactory.enabled` to `StaticSQLConf.scala` for consistency. To put the similar configurations together and for readability. No. Manually tested as described in #26530. Closes #26570 from HyukjinKwon/SPARK-25694. Authored-by: HyukjinKwon <gurwls223@apache.org> Signed-off-by: HyukjinKwon <gurwls223@apache.org> (cherry picked from commit 8469614) Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
1 parent 19cb475 commit d52ff4a

File tree

3 files changed

+7
-31
lines changed

3 files changed

+7
-31
lines changed

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,4 +133,11 @@ object StaticSQLConf {
133133
.intConf
134134
.checkValue(thres => thres > 0 && thres <= 128, "The threshold must be in (0,128].")
135135
.createWithDefault(16)
136+
137+
val DEFAULT_URL_STREAM_HANDLER_FACTORY_ENABLED =
138+
buildStaticConf("spark.sql.defaultUrlStreamHandlerFactory.enabled")
139+
.doc("When true, set FsUrlStreamHandlerFactory to support ADD JAR against HDFS locations")
140+
.internal()
141+
.booleanConf
142+
.createWithDefault(true)
136143
}

sql/core/src/main/scala/org/apache/spark/sql/internal/SharedState.scala

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,6 @@ import org.apache.spark.sql.catalyst.catalog._
3333
import org.apache.spark.sql.execution.CacheManager
3434
import org.apache.spark.sql.execution.ui.{SQLAppStatusListener, SQLAppStatusStore, SQLTab}
3535
import org.apache.spark.sql.internal.StaticSQLConf._
36-
import org.apache.spark.sql.internal.config.DEFAULT_URL_STREAM_HANDLER_FACTORY_ENABLED
37-
import org.apache.spark.sql.streaming.StreamingQuery
3836
import org.apache.spark.status.ElementTrackingStore
3937
import org.apache.spark.util.{MutableURLClassLoader, Utils}
4038

sql/core/src/main/scala/org/apache/spark/sql/internal/config/package.scala

Lines changed: 0 additions & 29 deletions
This file was deleted.

0 commit comments

Comments
 (0)