-
Type: Bug
-
Resolution: Duplicate
-
Priority: Major - P3
-
None
-
Affects Version/s: 6.0.8
-
Component/s: None
-
None
-
Server Triage
-
ALL
The results of geoNear example are different on mongo 5.0 and 6.0.
9.539931676365992 against 9.539931674131209
https://www.mongodb.com/docs/manual/reference/operator/aggregation/geoNear/
Therefore, some unit test failed.
Result of mongo 5.0.17:
[{"_id": 2, "name": "Sara D. Roosevelt Park", "category": "Parks", "location":
{"type": "Point", "coordinates": [-73.9928, 40.7193]}, "dist": {"calculated": 9.539931676365992, "location":
{"type": "Point", "coordinates": [-73.9928, 40.7193]}}}]
Result of mongo 6.0.8:
[{"_id": 2, "name": "Sara D. Roosevelt Park", "location":
{"type": "Point", "coordinates": [-73.9928, 40.7193]}, "category": "Parks", "dist": {"calculated": 9.539931674131209, "location":
{"type": "Point", "coordinates": [-73.9928, 40.7193]}}}]
- duplicates
-
SERVER-74983 Divergence in sin/cos functions across platforms can result in different 2dsphere index keys for Geo Points
- Closed