summaryrefslogtreecommitdiff
path: root/jstests/cqf/no_collection.js
blob: 3c7ecae4c3271b8b51c512afea81d09322d35e66 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
(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);
}());