| Steps To Reproduce: |
Start mongod with lookup pushdown feature flag on,
./build/opt/install/bin/mongod --setParameter featureFlagSBELookupPushdown=true
Run these commands in a shell
> assert.commandWorked(db.createCollection("baseColl"));
|
> assert.commandWorked(db.createCollection("unionColl"));
|
> assert.commandWorked(db.createCollection("lookupColl"));
|
> db.baseColl.explain().aggregate([{$unionWith: {coll: "unionColl", pipeline: [{$lookup: {from: "lookupColl", localField: "_id", foreignField: "_id", as: "results"}}]}}])
|
The error we get is:
uncaught exception: Error: command failed: {uncaught exception: Error: command failed: { "ok" : 0, "errmsg" : "Expected collection info, but found none; target collection: test.lookupColl", "code" : 5842600, "codeName" : "Location5842600"} with original command request: { "aggregate" : "baseColl", "pipeline" : [ { "$unionWith" : { "coll" : "unionColl", "pipeline" : [ { "$lookup" : { "from" : "lookupColl", "localField" : "_id", "foreignField" : "_id", "as" : "results" } } ] } } ], "explain" : true, "cursor" : { }, "lsid" : { "id" : UUID("e48870c4-edc9-4044-9b0d-579a8a5fffd4") }}
|
|