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)) ### Description ---- #### AI description (iteration 1) #### PR Classification Bug fix #### PR Summary This pull request addresses an issue with DBRef index handling in the query operator. - `query_operator.c`: Simplified the creation of DBRef qualifiers by consolidating the `$ref`, `$id`, and `$db` fields into a single BSON value. - `bson_aggregates_distinct_tests.out` and `bson_aggregates_distinct_tests.sql`: Added tests for inserting documents with DBRefs and creating indexes on these fields. - `reference.md`: Updated documentation to reflect changes in DBRef handling and indexing.