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 `$addFields` and `$set` aggregation stages ---- #### AI description (iteration 1) #### PR Classification New feature #### PR Summary This pull request adds support for the `addFields` operation with collation in the aggregation pipeline. - `bson_project.c`: Added collation support to `bson_dollar_add_fields` and related functions. - `bson_expression_comparison_operators.c`: Updated comparison operators to handle collation. - `bson_dollar_operators.c`: Enhanced query state population to include collation. - Test files `bson_dollar_ops_collation_tests_runtime.out` and `bson_dollar_ops_collation_tests_runtime.sql`: Added tests for collation with `$expr` and `$addFields`. - `bson_projection--latest.sql`: Added new function definition for `bson_dollar_add_fields` with collation. <!-- GitOpsUserAgent=GitOps.Apps.Server.pullrequestcopilot --> Related work items: #3919349, #3919367