[SERVER-40827] [FLE] Implement schema translation for $addFields agg stage Created: 25/Apr/19  Updated: 05/Jun/19  Resolved: 05/Jun/19

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

Type: Task Priority: Major - P3
Reporter: Nicholas Zolnierz Assignee: Ted Tuckman
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-40828 [FLE] Implement schema translation fo... Closed
Sprint: Query 2019-05-20, Query 2019-06-17
Participants:

 Comments   
Comment by Ted Tuckman [ 05/Jun/19 ]

Doing this as part of SERVER-40828 as the code has a lot of overlap.

Comment by Nicholas Zolnierz [ 05/Jun/19 ]

ted.tuckman can you close this and change the title of SERVER-40828 to reflect it?

Comment by Nicholas Zolnierz [ 25/Apr/19 ]

This task needs to consider the behavior for dotted path fields, since $addFields will implicitly traverse arrays and add nested objects. For instance, {$addFields: {a.b: 1}} will change the following documents:

{a: {c: 1}} --> {a: {b: 1, c: 1}}
{a: [{c: 1}]} --> {a: [{b: 1, c: 1}]}

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