Skip to content

Conversation

@craigtaverner
Copy link
Contributor

Backports the following commits to 9.0:

…tudes (elastic#128259)

It turns out in elastic#128234 that Lucene pushdown on ST_DISTANCE with invalid points (latitude out of range) will cause all documents to be returned, since DISJOINT on an invalid circle is true for all documents. We could either add an extra check for spatial pushdown that the geometries are valid, or add validation at geometry creation. This second option is much easier to implement, and a more comprehensive approach, as it prevents invalid geometries in many more places, hopefully reducing the likelihood of subtle and obscure bugs like elastic#128234 happening in future.
@craigtaverner craigtaverner added :Analytics/Geo Indexing, search aggregations of geo points and shapes >bug auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) labels May 25, 2025
@elasticsearchmachine elasticsearchmachine merged commit c489173 into elastic:9.0 May 25, 2025
16 checks passed
@craigtaverner craigtaverner deleted the backport/9.0/pr-128259 branch May 25, 2025 10:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Analytics/Geo Indexing, search aggregations of geo points and shapes auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport >bug Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) v9.0.3

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants