This is an automated email from the ASF dual-hosted git repository.
ruifengz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/spark.git
The following commit(s) were added to refs/heads/master by this push:
new 87a3b0655139 [SPARK-54816][SQL] Make SQL configs not lazy
87a3b0655139 is described below
commit 87a3b0655139695891995fbd9b34e560f0e98d67
Author: Ruifeng Zheng <[email protected]>
AuthorDate: Wed Dec 24 10:57:32 2025 +0800
[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]>
---
.../src/main/scala/org/apache/spark/sql/internal/SQLConf.scala | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git
a/sql/catalyst/src/main/scala/org/apache/spark/sql/internal/SQLConf.scala
b/sql/catalyst/src/main/scala/org/apache/spark/sql/internal/SQLConf.scala
index b129149213b2..95f5a3a4fabf 100644
--- a/sql/catalyst/src/main/scala/org/apache/spark/sql/internal/SQLConf.scala
+++ b/sql/catalyst/src/main/scala/org/apache/spark/sql/internal/SQLConf.scala
@@ -1033,14 +1033,14 @@ object SQLConf {
.checkValue(_ > 0, "The initial number of partitions must be positive.")
.createOptional
- lazy val ALLOW_COLLATIONS_IN_MAP_KEYS =
+ val ALLOW_COLLATIONS_IN_MAP_KEYS =
buildConf("spark.sql.collation.allowInMapKeys")
.doc("Allow for non-UTF8_BINARY collated strings inside of map's keys")
.version("4.0.0")
.booleanConf
.createWithDefault(false)
- lazy val OBJECT_LEVEL_COLLATIONS_ENABLED =
+ val OBJECT_LEVEL_COLLATIONS_ENABLED =
buildConf("spark.sql.collation.objectLevel.enabled")
.internal()
.doc(
@@ -1052,7 +1052,7 @@ object SQLConf {
.booleanConf
.createWithDefault(true)
- lazy val SCHEMA_LEVEL_COLLATIONS_ENABLED =
+ val SCHEMA_LEVEL_COLLATIONS_ENABLED =
buildConf("spark.sql.collation.schemaLevel.enabled")
.internal()
.doc(
@@ -1066,7 +1066,7 @@ object SQLConf {
.booleanConf
.createWithDefault(false)
- lazy val TRIM_COLLATION_ENABLED =
+ val TRIM_COLLATION_ENABLED =
buildConf("spark.sql.collation.trim.enabled")
.internal()
.doc("When enabled allows the use of trim collations which trim trailing
whitespaces from" +
@@ -1076,7 +1076,7 @@ object SQLConf {
.booleanConf
.createWithDefault(true)
- lazy val COLLATION_AWARE_HASHING_ENABLED =
+ val COLLATION_AWARE_HASHING_ENABLED =
buildConf("spark.sql.legacy.collationAwareHashFunctions")
.internal()
.doc("Enables collation aware hashing (legacy behavior) for collated
strings in " +
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]