Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SEDONA-454] Change the default value of sedona.global.indextype from quadtree to rtree #1159

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/api/sql/Parameter.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public static SedonaConf fromActiveSession() {
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]),
Expand Down