16 lines
399 B
JavaScript
16 lines
399 B
JavaScript
(function() {
|
|
"use strict";
|
|
|
|
load("jstests/libs/optimizer_utils.js"); // For checkCascadesOptimizerEnabled.
|
|
if (!checkCascadesOptimizerEnabled(db)) {
|
|
jsTestLog("Skipping test because the optimizer is not enabled");
|
|
return;
|
|
}
|
|
|
|
let t = db.cqf_no_collection;
|
|
t.drop();
|
|
|
|
const res = t.explain("executionStats").aggregate([{$match: {'a': 2}}]);
|
|
assert.eq(0, res.executionStats.nReturned);
|
|
}());
|