[SERVER-45465] [no sharding] support storing $unionWith in a view definition Created: 09/Jan/20  Updated: 29/Oct/23  Resolved: 13/Feb/20

Status: Closed
Project: Core Server
Component/s: Aggregation Framework
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 store_in_view.patch    
Issue Links:
Depends
depends on SERVER-45452 [no sharding] Support and test readin... Closed
is depended on by SERVER-45563 Support reading from a view on a shar... Closed
Backwards Compatibility: Fully Compatible
Sprint: Query 2020-01-27, Query 2020-02-10, Query 2020-02-24
Participants:

 Description   

It looks like there will be some C++ changes necessary to get this to work, along with some testing to confirm. I've attached a POC patch which is based of the one attached to SERVER-45452. It works, but has a strange use of expCtx->isParsingViewDefinition` which we should look into ways of avoiding.



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

Author:

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

Message: SERVER-45465 Add support for storing $unionWith in a view (unsharded)
Branch: master
https://github.com/mongodb/mongo/commit/70258e4babfcfa3725a4bf9cf06e853632917e57

Comment by Githook User [ 13/Feb/20 ]

Author:

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

Message: SERVER-45465 Enterprise changes for storing $unionWith in views
Branch: master
https://github.com/10gen/mongo-enterprise-modules/commit/7b7e18bd03aa4ae105613a7e9d81b0e871a47836

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