Skip to content

[DOCS] Qualify which ON predicates run after ST_KNN selects neighbors - #3557

Merged
jiayuasu merged 1 commit into
apache:masterfrom
jiayuasu:docs/knn-on-predicate-wording
Nov 18, 2026
Merged

jiayuasu merged 1 commit into
apache:masterfrom
jiayuasu:docs/knn-on-predicate-wording

Conversation

@jiayuasu

Copy link
Copy Markdown
Member

Did you read the Contributor Guide?

Is this PR related to a ticket?

  • No:
    • this is a documentation update. The PR name follows the format [DOCS] my subject

What changes were proposed in this PR?

A follow-up to #3542. The geography section of the nearest-neighbour page said that additional ON predicates are evaluated on the neighbors that ST_KNN selected. That is only true for the predicates that remain in the join condition after optimization: Spark can push a predicate that references only the object side below the join, and it then changes which objects take part in the search.

The sentence now says "additional ON predicates that remain in the join condition after optimization", in the English and the Chinese page. This matches what the page already says about the geometry KNN join.

How was this patch tested?

Documentation only. The pre-commit hooks pass on both files.

Did this PR include necessary documentation updates?

  • Yes, I have updated the documentation.

@jiayuasu jiayuasu added this to the sedona-2.0.0 milestone Nov 18, 2026
@jiayuasu
jiayuasu merged commit 6f863bc into apache:master Nov 18, 2026
11 checks passed
@jiayuasu
jiayuasu deleted the docs/knn-on-predicate-wording branch November 20, 2026 06:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant