Skip to content

Commit 87a3b06

Browse files
committed
[SPARK-54816][SQL] Make SQL configs not lazy
### What changes were proposed in this pull request? Make SQL configs not lazy ### Why are the changes needed? they don't have to be lazy vals which internally requires synchronization ### Does this PR introduce _any_ user-facing change? no ### How was this patch tested? ci ### Was this patch authored or co-authored using generative AI tooling? no Closes #53575 from zhengruifeng/config_non_lazy. Authored-by: Ruifeng Zheng <[email protected]> Signed-off-by: Ruifeng Zheng <[email protected]>
1 parent 72238e7 commit 87a3b06

File tree

1 file changed

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

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1033,14 +1033,14 @@ object SQLConf {
10331033
.checkValue(_ > 0, "The initial number of partitions must be positive.")
10341034
.createOptional
10351035

1036-
lazy val ALLOW_COLLATIONS_IN_MAP_KEYS =
1036+
val ALLOW_COLLATIONS_IN_MAP_KEYS =
10371037
buildConf("spark.sql.collation.allowInMapKeys")
10381038
.doc("Allow for non-UTF8_BINARY collated strings inside of map's keys")
10391039
.version("4.0.0")
10401040
.booleanConf
10411041
.createWithDefault(false)
10421042

1043-
lazy val OBJECT_LEVEL_COLLATIONS_ENABLED =
1043+
val OBJECT_LEVEL_COLLATIONS_ENABLED =
10441044
buildConf("spark.sql.collation.objectLevel.enabled")
10451045
.internal()
10461046
.doc(
@@ -1052,7 +1052,7 @@ object SQLConf {
10521052
.booleanConf
10531053
.createWithDefault(true)
10541054

1055-
lazy val SCHEMA_LEVEL_COLLATIONS_ENABLED =
1055+
val SCHEMA_LEVEL_COLLATIONS_ENABLED =
10561056
buildConf("spark.sql.collation.schemaLevel.enabled")
10571057
.internal()
10581058
.doc(
@@ -1066,7 +1066,7 @@ object SQLConf {
10661066
.booleanConf
10671067
.createWithDefault(false)
10681068

1069-
lazy val TRIM_COLLATION_ENABLED =
1069+
val TRIM_COLLATION_ENABLED =
10701070
buildConf("spark.sql.collation.trim.enabled")
10711071
.internal()
10721072
.doc("When enabled allows the use of trim collations which trim trailing whitespaces from" +
@@ -1076,7 +1076,7 @@ object SQLConf {
10761076
.booleanConf
10771077
.createWithDefault(true)
10781078

1079-
lazy val COLLATION_AWARE_HASHING_ENABLED =
1079+
val COLLATION_AWARE_HASHING_ENABLED =
10801080
buildConf("spark.sql.legacy.collationAwareHashFunctions")
10811081
.internal()
10821082
.doc("Enables collation aware hashing (legacy behavior) for collated strings in " +

0 commit comments

Comments
 (0)