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 more ---- #### AI description (iteration 1) #### PR Classification Performance improvement for array aggregation operators. #### PR Summary This pull request optimizes the handling of array aggregation operators by refactoring and consolidating code. - `src/operators/bson_expression_array_operators.c`: Refactored the `$filter` operator parsing and processing, including error handling and validation. - Consolidated and optimized the `$slice`, `$isArray`, `$in`, `$size`, `$arrayElemAt`, `$first`, `$last`, `$objectToArray`, `$arrayToObject`, and `$concatArrays` operators. - Improved error messages and validation checks for various array operations. Related work items: #3458685