jstests/core/sort_merge.js
// FETCH stages matches the number of branches and that each FETCH has an IXSCAN as a child.
FETCH stages matches the number of branches and that each FETCH has an IXSCAN as a child.
FETCH stages matches the number of branches and that each FETCH has an IXSCAN as a child .
function verifyNonCoveredPlan(explain, sortMerge) {
    assert(sortMerge.hasOwnProperty("inputStages"), explain);
    const numBranches = sortMerge.inputStages.length;
    const fetchStages = getPlanStages(sortMerge, "FETCH");
    assert.eq(fetchStages.length, numBranches, explain);
    for (const fetch of fetchStages) {
        assert(isIxscan(db, fetch), explain);
    }
}
function verifyNonCoveredPlan ( explain , sortMerge ) { assert ( sortMerge . hasOwnProperty ( "inputStages" ) , explain ) ; const numBranches = sortMerge . inputStages . length ; const fetchStages = getPlanStages ( sortMerge , "FETCH" ) ; assert . eq ( fetchStages . length , numBranches , explain ) ; for ( const fetch of fetchStages ) { assert ( isIxscan ( db , fetch ) , explain ) ; } }
FETCH stages matches the number of branches and that each FETCH has an IXSCAN as a child.
FETCH stages matches the number of branches and that each FETCH has an IXSCAN as a child .