-
Type:
Task
-
Resolution: Fixed
-
Priority:
Major - P3
-
Affects Version/s: None
-
Component/s: Aggregation Framework
-
None
-
Fully Compatible
-
Query 2019-06-03
-
None
-
None
-
None
-
None
-
None
-
None
-
None
For this task we just want to translate tests of modes "insertDocuments" and "replaceDocuments". Don't worry about removing duplicate coverage, that will be done by SERVER-41197.
| Written as | Translates to | |
|---|---|---|
{$out: {
to: "x",
uniqueKey: {x_id: 1},
mode: "insertDocuments"
}}
|
⟶ | {$merge: {
into: "x",
on: "x_id"
whenMatched: "fail",
whenNotMatched: "insert"
}}
|
{$out: {
to: "x",
uniqueKey: {x_id: 1},
mode: "replaceDocuments"
}}
|
⟶ | {$merge: {
into: "x",
on: "x_id",
whenMatched: "replaceWithNew",
whenNotMatched: "insert"
}}
|
- depends on
-
SERVER-41201 Add replacement for "withEachOutMode"
-
- Closed
-
- is depended on by
-
SERVER-41197 De-duplicate $out and $merge testing
-
- Closed
-
-
SERVER-40432 Undo 4.2 changes to $out
-
- Closed
-
- related to
-
SERVER-41198 Translate $out tests in jstests/aggregation/sources/out to use $merge
-
- Closed
-
-
SERVER-41200 Translate tests in other directories to use $merge
-
- Closed
-