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

jiayu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sedona.git


The following commit(s) were added to refs/heads/master by this push:
     new 8f38d2eaf [SEDONA-454] Change the default value of 
sedona.global.indextype from quadtree to rtree (#1159)
8f38d2eaf is described below

commit 8f38d2eaf31738bfb2d3c37259da0874331509e1
Author: Kristin Cowalcijk <[email protected]>
AuthorDate: Fri Dec 22 02:10:22 2023 +0800

    [SEDONA-454] Change the default value of sedona.global.indextype from 
quadtree to rtree (#1159)
---
 docs/api/sql/Parameter.md                                               | 2 +-
 spark/common/src/main/java/org/apache/sedona/core/utils/SedonaConf.java | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/docs/api/sql/Parameter.md b/docs/api/sql/Parameter.md
index 437f4e878..ccf2c52fa 100644
--- a/docs/api/sql/Parameter.md
+++ b/docs/api/sql/Parameter.md
@@ -26,7 +26,7 @@ sparkSession.conf.set("sedona.global.index","false")
        * Possible values: true, false
 * sedona.global.indextype
        * Spatial index type, only valid when "sedona.global.index" is true
-       * Default: quadtree
+       * Default: rtree
        * Possible values: rtree, quadtree
 * sedona.join.autoBroadcastJoinThreshold
        * Configures the maximum size in bytes for a table that will be 
broadcast to all worker nodes when performing a join.
diff --git 
a/spark/common/src/main/java/org/apache/sedona/core/utils/SedonaConf.java 
b/spark/common/src/main/java/org/apache/sedona/core/utils/SedonaConf.java
index 39c709307..4364b4442 100644
--- a/spark/common/src/main/java/org/apache/sedona/core/utils/SedonaConf.java
+++ b/spark/common/src/main/java/org/apache/sedona/core/utils/SedonaConf.java
@@ -67,7 +67,7 @@ public class SedonaConf
     public SedonaConf(RuntimeConfig runtimeConfig)
     {
         this.useIndex = 
Boolean.parseBoolean(runtimeConfig.get("sedona.global.index", "true"));
-        this.indexType = 
IndexType.getIndexType(runtimeConfig.get("sedona.global.indextype", 
"quadtree"));
+        this.indexType = 
IndexType.getIndexType(runtimeConfig.get("sedona.global.indextype", "rtree"));
         this.joinApproximateTotalCount = 
Long.parseLong(runtimeConfig.get("sedona.join.approxcount", "-1"));
         String[] boundaryString = runtimeConfig.get("sedona.join.boundary", 
"0,0,0,0").split(",");
         this.datasetBoundary = new 
Envelope(Double.parseDouble(boundaryString[0]), 
Double.parseDouble(boundaryString[1]),

Reply via email to