Skip to content

Commit 8469614

Browse files
committed
[SPARK-25694][SQL][FOLLOW-UP] Move 'spark.sql.defaultUrlStreamHandlerFactory.enabled' into StaticSQLConf.scala
### What changes were proposed in this pull request? This PR is a followup of apache#26530 and proposes to move the configuration `spark.sql.defaultUrlStreamHandlerFactory.enabled` to `StaticSQLConf.scala` for consistency. ### Why are the changes needed? To put the similar configurations together and for readability. ### Does this PR introduce any user-facing change? No. ### How was this patch tested? Manually tested as described in apache#26530. Closes apache#26570 from HyukjinKwon/SPARK-25694. Authored-by: HyukjinKwon <[email protected]> Signed-off-by: HyukjinKwon <[email protected]>
1 parent 9514b82 commit 8469614

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
@@ -161,4 +161,11 @@ object StaticSQLConf {
161161
"defaults, dropping any overrides in its parent SparkSession.")
162162
.booleanConf
163163
.createWithDefault(false)
164+
165+
val DEFAULT_URL_STREAM_HANDLER_FACTORY_ENABLED =
166+
buildStaticConf("spark.sql.defaultUrlStreamHandlerFactory.enabled")
167+
.doc("When true, set FsUrlStreamHandlerFactory to support ADD JAR against HDFS locations")
168+
.internal()
169+
.booleanConf
170+
.createWithDefault(true)
164171
}

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
@@ -36,8 +36,6 @@ import org.apache.spark.sql.execution.CacheManager
3636
import org.apache.spark.sql.execution.streaming.StreamExecution
3737
import org.apache.spark.sql.execution.ui.{SQLAppStatusListener, SQLAppStatusStore, SQLTab}
3838
import org.apache.spark.sql.internal.StaticSQLConf._
39-
import org.apache.spark.sql.internal.config.DEFAULT_URL_STREAM_HANDLER_FACTORY_ENABLED
40-
import org.apache.spark.sql.streaming.StreamingQuery
4139
import org.apache.spark.status.ElementTrackingStore
4240
import org.apache.spark.util.Utils
4341

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)