[SERVER-76088] Fix sort and hint with $natural query shape Created: 13/Apr/23  Updated: 30/Jan/24  Resolved: 15/Apr/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.0.0-rc0

Type: Improvement Priority: Major - P3
Reporter: Charlie Swanson Assignee: Charlie Swanson
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-75596 Stress $queryStats read path for aggr... Closed
Backwards Compatibility: Fully Compatible
Sprint: QO 2023-04-17, QO 2023-05-01
Participants:
Linked BF Score: 69

 Description   

We will not be able to instantiate or parse into a SortPattern if the sort has $natural in it. On the regular command path, the sort gets turned into a hint if it contains "$natural". For telemetry, we should keep it as the sort but avoid failing to parse it as a FieldPath



 Comments   
Comment by Githook User [ 30/Jan/24 ]

Author:

{'name': 'Erin Zhu', 'email': 'erin.zhu@mongodb.com', 'username': 'erinzhu001'}

Message: SERVER-85956 Backport QueryStats to 7.0 Batch #1

Includes
SERVER-75139: shapify $lookup, $unionWith, $facet
SERVER-75132: Shapify $indexStats, $queue, $graphLookup
SERVER-75513 Add support for $telemetry.redactionKey
SERVER-75398 New query shape definition for find command
SERVER-75110 Support SerializationOptions in IDL generated serializers
SERVER-76088 Fix sort and hint with $natural query shape
SERVER-75138 Add shapification for DocumentSources which use IDL for serialization
SERVER-76189 Define let variables when parsing for telemetry
and enterprise changes
SERVER-75139: Shapify $_internalSearchMongotRemote
SERVER-75398 New query shape definition for find command
GitOrigin-RevId: 2d5ea278172d9b2c88e27182722cb0bab2b261b1
Branch: v7.0
https://github.com/mongodb/mongo/commit/49a87c23def90c803065b3f5fbee730664233a62

Comment by Githook User [ 14/Apr/23 ]

Author:

{'name': 'Charlie Swanson', 'email': 'charlie.swanson@mongodb.com', 'username': 'cswanson310'}

Message: SERVER-76088 Fix sort and hint with $natural query shape
Branch: master
https://github.com/mongodb/mongo/commit/6dd2143e15a38ee60ac2f4ac9a6a7ddb0c55e7f1

Generated at Thu Feb 08 06:31:48 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.