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 the PR to fix some cases of jstests/core/server6238.js,  15 line of case cannot be fixed yet, because `$a` is not a operator, in group stage should report `InvalidPipelineOperator`, in project stage, should report error code `31325` . so to fix the case, we need to distinguish the group stage and the project stage in ParseAggregationExpressionData Function. fix some cases of jstest. when field is start with "$", ErrorCode should is 16410. example: ``` db.coll1.aggregate([ { $project: { $a: "$a" } } ]); ``` when field is invalidOperator, ErrorCode should is 40236 ``` db.jstest1.aggregate([ { $group: { _id: "$_id", $a: { $sum: 1 } } } ]); ``` ---- #### AI description (iteration 1) #### PR Classification Bug fix #### PR Summary This pull request addresses a bug in the jstest_server by adding a new error code and updating related error handling logic. - `helio_conversion_codes.c`: Added handling for `ERRCODE_HELIO_LOCATION40236`. - `bson_tree.c` and `bson_io.c`: Updated error codes to use `ERRCODE_HELIO_LOCATION40236`. - `helio_errors.h`, `helio_codes.txt`, `helioerrors.csv`, `mongoerrors.csv`, and `mongo_codes.csv`: Added definitions and entries for `ERRCODE_HELIO_LOCATION40236`.