Bug #107424 | st_intersects() returns different results with or without spatial index | ||
---|---|---|---|
Submitted: | 30 May 2022 5:45 | Modified: | 31 May 2022 3:25 |
Reporter: | Jeremy Wang | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: GIS | Severity: | S2 (Serious) |
Version: | 8.0.26, 8.0.29, 8.0.32 | OS: | Linux |
Assigned to: | CPU Architecture: | Any | |
Tags: | regression, spatial index, st_intersects |
[30 May 2022 5:45]
Jeremy Wang
[30 May 2022 8:44]
MySQL Verification Team
Hello Jeremy Wang, Thank you for the report and test case. Verified as described. regards, Umesh
[31 May 2022 3:25]
Jeremy Wang
Hello Umesh, Thank you! Could you please tell me which result is the right one, with or without spatial index? It seems the result with index is more strict. But if the result without index is right, I may need to do some extra work in my application.
[30 Mar 2023 7:51]
MySQL Verification Team
Quoting Dev's note from internal bug - "The problem is that Boost Geometry tests equality up to some epsilon, so numbers that are very close are considered equal. When using the index the equality with the second point is never tested. the correct result is that of the index"