SERVER-87783 address TODO for $out implicit db creation (#30818)
GitOrigin-RevId: 973c1d52acd20d608cead9123f3295547853e8ba
This commit is contained in:
parent
0ce8ebbd16
commit
fff9450ddf
@ -255,14 +255,8 @@ function createTimeseriesOutCollection() {
|
||||
const timeseriesPipeline =
|
||||
[{$out: {db: destDB.getName(), coll: outColl.getName(), timeseries: {timeField: "time"}}}];
|
||||
|
||||
// TODO (SERVER-75856): Support implicit database creation for $merge and $out when running
|
||||
// aggregate on a mongos.
|
||||
try {
|
||||
inColl.aggregate(timeseriesPipeline);
|
||||
assert.eq(300, destDB[outColl.getName()].find().itcount());
|
||||
} catch (e) {
|
||||
assert.eq(e.code, ErrorCodes.NamespaceNotFound, e);
|
||||
}
|
||||
inColl.aggregate(timeseriesPipeline);
|
||||
assert.eq(300, destDB[outColl.getName()].find().itcount());
|
||||
})();
|
||||
|
||||
(function testCannotCreateTimeseriesCollFromNonTimeseriesColl() {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user