mirror of
https://github.com/FerretDB/documentdb.git
synced 2026-11-25 11:49:53 -05:00
### Does this PR have any customer impact? No ### Type (Feature, Refactoring, Bugfix, DevOps, Testing, Perf, etc) Feature ### Does it involve schema level changes? (Table, Column, Index, UDF, etc level changes) Yes ### Are you introducing any new config? If yes, do you have tests with and without them being set? No ### ChangeLog (Refer [Template](../oss/CHANGELOG.md)) ### Description Support collation for `replaceRoot` aggregation stage ---- #### AI description (iteration 1) #### PR Classification New feature #### PR Summary This pull request adds support for the `$replaceRoot` operation with collation in the BSON aggregation pipeline. - `bson_projection--0.102-0.sql` and `bson_projection--latest.sql`: Added new function `bson_dollar_replace_root` with collation support. - `metadata_cache.c` and `metadata_cache.h`: Added OID cache and retrieval function for the new `bson_dollar_replace_root` with collation. - `bson_project.c`: Updated `bson_dollar_replace_root` to handle collation. - `bson_aggregation_pipeline.c`: Integrated collation handling in `HandleReplaceRoot`. - Updated test files to include new test cases for `$replaceRoot` with collation. <!-- GitOpsUserAgent=GitOps.Apps.Server.pullrequestcopilot -->