mirror of
https://github.com/FerretDB/documentdb.git
synced 2026-11-25 11:49:53 -05:00
Flows a parse aggregation expression context while parsing the expression so that we can track if there were variables, operators, path expressions and do top level validation if needed for things like $let, etc. ---- #### AI description (iteration 1) #### PR Classification API change to add a parse aggregation expression context while parsing aggregation expressions. #### PR Summary This pull request introduces a `ParseAggregationExpressionContext` to track the types of expressions encountered during the parsing of aggregation expressions. - `include/operators/bson_expression_operators.h`: Added `ParseAggregationExpressionContext` parameter to various `ParseDollar*` functions. - `src/operators/bson_expression_bitwise_operators.c`: Updated bitwise operator parsing functions to include the new context parameter. - `src/operators/bson_expression_date_operators.c`: Modified date operator parsing functions to use the new context parameter. - `src/operators/bson_expression_string_operators.c`: Updated string operator parsing functions to include the context parameter. - `include/operators/bson_expression.h`: Defined the `ParseAggregationExpressionContext` struct.