mirror of https://github.com/mongodb/mongo
SERVER-112869 Add regression test (#43080)
GitOrigin-RevId: d8c2872d32b60578f6721d08151bc25192340eb4
This commit is contained in:
parent
3cbe02572d
commit
2cf5eb1bb5
|
|
@ -0,0 +1,15 @@
|
|||
//
|
||||
// Validate that join optimization does not run into issues for collectionless aggregations.
|
||||
//
|
||||
// @tags: [
|
||||
// requires_fcv_83,
|
||||
// ]
|
||||
//
|
||||
|
||||
try {
|
||||
assert.commandWorked(db.adminCommand({setParameter: 1, internalEnableJoinOptimization: true}));
|
||||
assert.commandWorked(db.adminCommand({aggregate: 1, pipeline: [{$queryStats: {}}], cursor: {}}));
|
||||
assert.commandWorked(db.adminCommand({aggregate: 1, pipeline: [{$documents: [{myDoc: 1}]}], cursor: {}}));
|
||||
} finally {
|
||||
assert.commandWorked(db.adminCommand({setParameter: 1, internalEnableJoinOptimization: false}));
|
||||
}
|
||||
Loading…
Reference in New Issue