mirror of
https://github.com/FerretDB/documentdb.git
synced 2026-11-25 11:49:53 -05:00
### Does this PR have any customer impact? Yes ### Type (Feature, Refactoring, Bugfix, DevOps, Testing, Perf, etc) Bugfix ### Does it involve schema level changes? (Table, Column, Index, UDF, etc level changes) No ### Are you introducing any new config? If yes, do you have tests with and without them being set? No ### Release Note (Refer [Template](../docs/release_notes/pgmongo_template.md)) - Bugfix with $polygon self intersecting geometry ### Description MongoDB is not restrictive when the 2d polygon is created using `$polygon` Here the polygon defined by `$polygon` is not a valid polygon as it intersects with itself `[[10, 10], [10, 12], [11, 11], [9, 11]]`  But similar query in Postgis would not work and we can always make them valid using ST_makevalid: 