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

Fix incorrect intersection between two envelopes #15104

Merged
merged 1 commit into from
Sep 8, 2020

Conversation

jagill
Copy link
Contributor

@jagill jagill commented Sep 1, 2020

When two envelopes intersected at a single point, the intersection would
be incorrectly calculated as POINT(x, x) instead of POINT(x, y).
This also simplifies the logic when two envelopes intersect in a line.

Test plan - Added unit test for failing case.

== RELEASE NOTES ==

Geospatial Changes
* Fix bug when two envelopes intersect at a point for :func:`ST_Intersection`.

When two envelopes intersected at a single point, the intersection would
be incorrectly calculated as `POINT(x, x)` instead of `POINT(x, y)`.
This also simplifies the logic when two envelopes intersect in a line.
@jagill jagill requested a review from mbasmanova September 1, 2020 16:33
@jagill
Copy link
Contributor Author

jagill commented Sep 1, 2020

cc: @mbasmanova Correctness fix for ST_Intersection

@mbasmanova mbasmanova merged commit 731ea6b into prestodb:master Sep 8, 2020
@jagill jagill deleted the intersection-fix branch September 8, 2020 20:38
@caithagoras caithagoras mentioned this pull request Sep 9, 2020
3 tasks
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.

2 participants