jstests/aggregation/sources/lookup/lookup_equijoin_semantics_lib.js
/**
 * Checks that the expected join algorithm has been used (to sanity check that the tests do provide
 * the intended coverage).
 */
Checks that the expected join algorithm has been used (to sanity check that the tests do provide
the intended coverage).
Checks that the expected join algorithm has been used ( to sanity check that the tests do provide the intended coverage ) .
function checkJoinConfiguration(explain) {
    const eqLookupNodes = getAggPlanStages(explain, "EQ_LOOKUP");
    if (checkSBEEnabled(db, ["featureFlagSBELookupPushdown"])) {
        if (eqLookupNodes.length > 0) {
            assert.eq(currentJoinAlgorithm.strategy, eqLookupNodes[0].strategy, "Join strategy");
        } else {
            return false;
        }
    }
    return true;
}
function checkJoinConfiguration ( explain ) { const eqLookupNodes = getAggPlanStages ( explain , "EQ_LOOKUP" ) ; if ( checkSBEEnabled ( db , [ "featureFlagSBELookupPushdown" ] ) ) { if ( eqLookupNodes . length > 0 ) { assert . eq ( currentJoinAlgorithm . strategy , eqLookupNodes [ 0 ] . strategy , "Join strategy" ) ; } else { return false ; } } return true ; }
Checks that the expected join algorithm has been used (to sanity check that the tests do provide
 the intended coverage).
Checks that the expected join algorithm has been used ( to sanity check that the tests do provide the intended coverage ) .
// The $lookup stage has been lowered. Check that it's using the expected join strategy. // In some suites, the tests cannot be lowered to SBE for reasons outside of our // control (e.g. sharding or pipeline being wrapped into other stages). We test the fact // that $lookup is lowered when we expect it to in lookup_pushdown.js.