mirror of
https://github.com/FerretDB/documentdb.git
synced 2026-11-25 11:49:53 -05:00
### Does this PR have any customer impact? ### Type (Feature, Refactoring, Bugfix, DevOps, Testing, Perf, etc) ### Does it involve schema level changes? (Table, Column, Index, UDF, etc level changes) ### Are you introducing any new config? If yes, do you have tests with and without them being set? ### Release Note (Refer [Template](../docs/release_notes/pgmongo_template.md)) ### Description update ---- #### AI description (iteration 1) #### PR Classification Bug fix for memory check in maxN/minN aggregation functions. #### PR Summary This pull request addresses a bug in the memory check for maxN/minN aggregation functions by adding size validation and handling large element sizes. - `bson_aggregates.c`: Added size validation for intermediate documents and updated element type handling to support int64. - `bson_aggregation_pipeline_tests_maxnminn_group.out`: Added tests to verify the 100 MB limit for $maxN and $minN operations.