[SERVER-45452] [no sharding] Support and test reading from a view using $unionWith Created: 09/Jan/20  Updated: 29/Oct/23  Resolved: 03/Feb/20

Status: Closed
Project: Core Server
Component/s: Aggregation Framework, Querying
Affects Version/s: None
Fix Version/s: 4.3.4

Type: New Feature 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

Attachments: Text File read_from_view.patch    
Issue Links:
Depends
depends on SERVER-45399 Add basic union aggregation stage for... Closed
depends on SERVER-45526 Support union with sharded collections Closed
is depended on by SERVER-45465 [no sharding] support storing $unionW... Closed
Backwards Compatibility: Fully Compatible
Sprint: Query 2020-01-27, Query 2020-02-10
Participants:

 Description   

This should involve looking for the resolved namespace on the expression context and prepending the view definition, if any. I've attached a POC patch which should work. That patch also minorly refactors some tests.



 Comments   
Comment by Githook User [ 03/Feb/20 ]

Author:

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

Message: SERVER-45452 Support for reading from a view (unsharded)
Branch: master
https://github.com/mongodb/mongo/commit/ed503cddf0373690415447b9fc2fc8812a070960

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