Skip to content
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/NearestNeighbourSearching.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ Both arguments must be geographies. To join a geography with a geometry, convert

A geography `ST_KNN` join runs as a broadcast join, so one side must fit in memory. Either side can be broadcast. Add a broadcast hint to the smaller side, or set `sedona.join.autoBroadcastJoinThreshold` high enough for Sedona to broadcast it automatically. If neither side is broadcast, query planning fails with an error. Only inner joins are supported.

The other rules on this page apply to geographies as well: NULL and empty geographies are skipped, ties are returned only when `spark.sedona.join.knn.includeTieBreakers` is `true`, and additional `ON` predicates are evaluated on the neighbors that `ST_KNN` selected.
The other rules on this page apply to geographies as well: NULL and empty geographies are skipped, ties are returned only when `spark.sedona.join.knn.includeTieBreakers` is `true`, and additional `ON` predicates that remain in the join condition after optimization are evaluated on the neighbors that `ST_KNN` selected.

SQL Example:

Expand Down
2 changes: 1 addition & 1 deletion docs/api/sql/NearestNeighbourSearching.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ spark.sedona.join.knn.includeTieBreakers=true

Geography 上的 `ST_KNN` 连接以广播连接的方式执行,因此其中一侧必须能放入内存。两侧都可以被广播。请给较小的一侧加上广播提示,或者把 `sedona.join.autoBroadcastJoinThreshold` 设置得足够大,让 Sedona 自动广播它。如果两侧都没有被广播,查询规划会报错。仅支持内连接。

本页的其他规则同样适用于 geography:NULL 和空的 geography 会被跳过;只有当 `spark.sedona.join.knn.includeTieBreakers` 为 `true` 时才返回并列的结果;`ON` 中的其他谓词作用于 `ST_KNN` 已选出的邻居。
本页的其他规则同样适用于 geography:NULL 和空的 geography 会被跳过;只有当 `spark.sedona.join.knn.includeTieBreakers` 为 `true` 时才返回并列的结果;`ON` 中经优化后仍保留在连接条件里的其他谓词作用于 `ST_KNN` 已选出的邻居。

SQL 示例:

Expand Down
Loading