Files
documentdb/pg_helio_api/include/planner
Vinod Sridharan 27496ae4d2 Merged PR 1487161: Support $comment operator
### 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`.
2024-10-25 09:11:39 +03:00
..