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? Yes ### Release Note (Refer [Template](../docs/release_notes/pgmongo_template.md)) ### Description $densify stage is implemented with all 3 modes - range - partition - full All 7 functional tests are passing, few tests which are explain specific will be pass in next PR with the changes  ---- #### AI description (iteration 1) #### PR Classification New feature: Adds a new `$densify` aggregation stage. #### PR Summary Introduces the `$densify` aggregation stage to create new documents where certain field values are missing. - Added detailed documentation for `$densify` in `docs/pgmongo/design_docs/data_plane/aggregation_stages/densify.md`. - Implemented core aggregation logic in `oss/pg_helio_api/src/aggregation/bson_densify.c`. - Created SQL functions and aggregates for densify operations in `oss/pg_helio_api/sql/udfs/aggregation/bson_densify_aggregates--1.21-0.sql` and `oss/pg_helio_api/sql/udfs/aggregation/bson_densify_aggregates--latest.sql`. - Updated versioning and inclusion of new SQL files in `oss/pg_helio_api/sql/pg_helio_api--1.20-0--1.21-0.sql` and `pgmongo/sql/pgmongo--1.20-0--1.21-0.sql`. Related work items: #3436236