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/POC ### 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 ### ChangeLog (Refer [Template](../oss/CHANGELOG.md)) ### Description Fix up diff and correctness issues with the composite op class - Fix $range correctness with arrays - Fix type bracketing for $range - Fix term generation for numbers. ---- #### AI description (iteration 1) #### PR Classification Bug fix #### PR Summary This pull request addresses correctness issues in the composite operation class. - `bson_gin_composite_entrypoint.c`: Improved handling of truncation and scan keys in `gin_bson_composite_path_consistent` and `gin_bson_composite_path_extract_query`. - `bson_gin_composite_core.c`: Enhanced `UpdateRunDataForVariableBounds` to correctly handle term mapping and bounds. - `bson_query_operator_tests_index_composite.out`: Updated expected test results to reflect the corrected behavior. <!-- GitOpsUserAgent=GitOps.Apps.Server.pullrequestcopilot -->