jstests/core/sort_merge.js
// has as many IXSCAN stages as there are branches.
has as many IXSCAN stages as there are branches.
has as many IXSCAN stages as there are branches .
function verifyMixedPlan(explain, sortMerge) {
    assert(sortMerge.hasOwnProperty("inputStages"), explain);
    const numBranches = sortMerge.inputStages.length;
    const ixscanStages = getPlanStages(sortMerge, "IXSCAN");
    assert.eq(ixscanStages.length, numBranches, explain);
}
function verifyMixedPlan ( explain , sortMerge ) { assert ( sortMerge . hasOwnProperty ( "inputStages" ) , explain ) ; const numBranches = sortMerge . inputStages . length ; const ixscanStages = getPlanStages ( sortMerge , "IXSCAN" ) ; assert . eq ( ixscanStages . length , numBranches , explain ) ; }
has as many IXSCAN stages as there are branches.
has as many IXSCAN stages as there are branches .
// Note that this is not as strong an assertion as 'isIndexOnly' as some branches will have // FETCH stages.