Files
documentdb/pg_helio_api/include/query
Deepak Bisht a19d90fef0 Merged PR 1371674: [pgmongo] - Fix distinct / findAndModify to consider all sort clauses,
### Does this PR have any customer impact?
Yes

### 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

### Release Note (Refer [Template](../docs/release_notes/pgmongo_template.md))

### Description
1. $near/ $nearSphere add sort clause and target entry to the query AST which is needed to be pushed down to a subquery in a distinct call.

2. Remove the requirement of `Query` node to build the `near/nearSphere` in query_operators.c. Added 2 new fields to `BsonQueryOperatorContext` that holds referrence to the `sort clauses` and `target entries` for the sort clauses which can be added back to the `Query` node.

Related work items: #3248030
2024-06-21 18:21:38 +03:00
..