This is an automated email from the ASF dual-hosted git repository.

cloud-fan pushed a commit to branch branch-4.x
in repository https://gitbox.apache.org/repos/asf/spark.git


The following commit(s) were added to refs/heads/branch-4.x by this push:
     new 3b2a0756ba8f [SPARK-56771][SQL] Enable geospatial support by default
3b2a0756ba8f is described below

commit 3b2a0756ba8f6e9ae4d8268bf6651a24fd4c8151
Author: Uros Bojanic <[email protected]>
AuthorDate: Sat May 9 03:03:41 2026 +0800

    [SPARK-56771][SQL] Enable geospatial support by default
    
    ### What changes were proposed in this pull request?
    With geospatial types implemented in Spark 
(https://issues.apache.org/jira/browse/SPARK-51658), we can now enable the 
corresponding SQL config by default.
    
    ### Why are the changes needed?
    Enable geospatial support by default in Spark 4.2.
    
    ### Does this PR introduce _any_ user-facing change?
    Yes, geospatial types and expressions are now enabled by default.
    
    ### How was this patch tested?
    Existing tests suffice, this is a config-only change.
    
    ### Was this patch authored or co-authored using generative AI tooling?
    No.
    
    Closes #55734 from uros-db/geo-enable.
    
    Authored-by: Uros Bojanic <[email protected]>
    Signed-off-by: Wenchen Fan <[email protected]>
    (cherry picked from commit c6d289d5423a4fd931f46f4f0135136a9502c586)
    Signed-off-by: Wenchen Fan <[email protected]>
---
 sql/catalyst/src/main/scala/org/apache/spark/sql/internal/SQLConf.scala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 24bdf43e5d6c..45d523fce80e 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
@@ -623,7 +623,7 @@ object SQLConf {
       .doc("When true, enables geospatial types (GEOGRAPHY/GEOMETRY) and ST 
functions.")
       .version("4.1.0")
       .booleanConf
-      .createWithDefaultFunction(() => Utils.isTesting)
+      .createWithDefault(true)
 
   val TYPES_FRAMEWORK_ENABLED =
     buildConf("spark.sql.types.framework.enabled")


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to