[SERVER-78945] Fix positional projection serialization to be re-parseable Created: 13/Jul/23  Updated: 29/Oct/23  Resolved: 15/Sep/23

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

Type: Bug Priority: Major - P3
Reporter: Will Buerger Assignee: Alyssa Clark
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Assigned Teams:
Query Optimization
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: QO 2023-07-24, QO 2023-08-07, QO 2023-08-21, QO 2023-09-04, QO 2023-09-18
Participants:

 Description   

When we have a query that uses positional projection on an array, the positional projection is serialized as, for example,

{ sub: { $id.$: true } }

whereas the original (valid) syntax is

{ sub.$id.$: true }

This results in this re-parse error:

Was not able to re-parse queryStats key when reading queryStats. Status: Location31325: Unknown expression $id.$ 

 

The test dbref3.js caught this bug and should be re-enabled when it's fixed.



 Comments   
Comment by Githook User [ 15/Sep/23 ]

Author:

{'name': 'Alyssa Wagenmaker', 'email': 'alyssa.wagenmaker@mongodb.com', 'username': 'awagenmaker'}

Message: SERVER-78945 Handle parsing DBRef positional subprojections
Branch: master
https://github.com/mongodb/mongo/commit/1a4d59d790ab4072d15a30c3b62ceac271b37260

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