Files
documentdb/internal/pg_documentdb_distributed
Vinod Sridharan b657d1057e Merged PR 1633206: [Composite POC] Fix correctness in composite op class
### 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 -->
2025-04-10 10:29:08 -06:00
..