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) No ### Are you introducing any new config? If yes, do you have tests with and without them being set? No ### Release Note (Refer [Template](../docs/release_notes/pgmongo_template.md)) ### Description Support parsing and ignoring the $comment query operator. ---- #### AI description (iteration 1) #### PR Classification New feature #### PR Summary This pull request adds support for the `$comment` operator in MongoDB queries. - Added `$comment` operator to `QueryOperators` in `mongo_query_operator.c`. - Updated `query_operator.c` to handle and ignore `$comment` during query processing. - Added tests for `$comment` operator in `bson_aggregation_pipeline_tests.sql` and `bson_aggregation_pipeline_tests.out`. - Defined `QUERY_OPERATOR_COMMENT` in `mongo_query_operator.h`.