[SERVER-43377] Make positional projection internal expression able to access Document pre-image Created: 19/Sep/19  Updated: 29/Oct/23  Resolved: 24/Sep/19

Status: Closed
Project: Core Server
Component/s: Querying
Affects Version/s: None
Fix Version/s: 4.3.1

Type: Task Priority: Major - P3
Reporter: Ian Boros Assignee: Anton Korshunov
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Query 2019-10-07
Participants:

 Description   

As discussed in person this is necessary for cases like 

E.g.
Document: {a: 1, b: [3, 4, 5]}

// We'll re-apply the match expression {a: 1, b: 3} to the post-image of the document, which won't have an 'a' field.
Query: db.c.find({a: 1, b: 3}, {b.$: 1})

 

 



 Comments   
Comment by Githook User [ 24/Sep/19 ]

Author:

{'username': 'antkorsh', 'email': 'anton.korshunov@mongodb.com', 'name': 'Anton Korshunov'}

Message: SERVER-43377 Make positional projection internal expression able to access Document pre-image
Branch: master
https://github.com/mongodb/mongo/commit/d4c306ea210d905578c2cf464a117815d6ea83b9

Generated at Thu Feb 08 05:03:01 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.