mirror of
https://github.com/FerretDB/documentdb.git
synced 2026-11-26 12:19:56 -05:00
### Does this PR have any customer impact? No ### Type (Feature, Refactoring, Bugfix, DevOps, Testing, Perf, etc) Bugfix ### 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 bug with composite index and NaN query - this was due to `$range` not pushing the individual $lt/$lte clauses - call into common code here. ---- #### AI description (iteration 1) #### PR Classification Bug fix addressing incorrect dollar range handling for composite indexes and related configuration/script adjustments. #### PR Summary This pull request refactors the dollar range logic in composite indexes by replacing legacy bound assignments with a strategy-based approach and streamlines associated configuration scripts. - **`/oss/pg_documentdb/src/opclass/bson_gin_composite_core.c`**: Replaces manual bound calculation with a new strategy (using SetSingleRangeBoundsFromStrategy) to properly handle inclusive/exclusive bounds for both minimum and maximum values. - **Shell scripts (`/scripts/utils.sh` and `/scripts/start_postgres_server.sh`)**: Remove deprecated gateway parameter handling and add extra configuration file support. - **Test output files**: Update expected query results by removing unnecessary _id filtering and reflecting corrected row outputs. <!-- GitOpsUserAgent=GitOps.Apps.Server.pullrequestcopilot -->