jstests/noPassthrough/sbe_plan_cache_key_reporting.js
// 'queryHash' and 'planCacheKey' formats, which are different between the two engines.
'queryHash' and 'planCacheKey' formats, which are different between the two engines.
' queryHash ' and ' planCacheKey ' formats which are different between the two engines .
function assertQueryHashAndPlanCacheKey(sbe, classic) {
    assert.eq(typeof sbe.queryHash, "string", sbe);
    assert.gt(sbe.queryHash.length, 0, sbe);
    assert.eq(typeof sbe.planCacheKey, "string", sbe);
    assert.gt(sbe.planCacheKey.length, 0, sbe);
    assert.eq(typeof classic.queryHash, "string", classic);
    assert.gt(classic.queryHash.length, 0, classic);
    assert.eq(typeof classic.planCacheKey, "string", classic);
    assert.gt(classic.planCacheKey.length, 0, classic);
    assert.neq(sbe.queryHash, classic.queryHash, `sbe=${tojson(sbe)}, classic=${tojson(classic)}`);
    assert.neq(
        sbe.planCacheKey, classic.planCacheKey, `sbe=${tojson(sbe)}, classic=${tojson(classic)}`);
}
function assertQueryHashAndPlanCacheKey ( sbe , classic ) { assert . eq ( typeof sbe . queryHash , "string" , sbe ) ; assert . gt ( sbe . queryHash . length , 0 , sbe ) ; assert . eq ( typeof sbe . planCacheKey , "string" , sbe ) ; assert . gt ( sbe . planCacheKey . length , 0 , sbe ) ; assert . eq ( typeof classic . queryHash , "string" , classic ) ; assert . gt ( classic . queryHash . length , 0 , classic ) ; assert . eq ( typeof classic . planCacheKey , "string" , classic ) ; assert . gt ( classic . planCacheKey . length , 0 , classic ) ; assert . neq ( sbe . queryHash , classic . queryHash , ` ${ tojson ( sbe ) } ${ tojson ( classic ) } ` ) ; assert . neq ( sbe . planCacheKey , classic . planCacheKey , ` ${ tojson ( sbe ) } ${ tojson ( classic ) } ` ) ; }
'queryHash' and 'planCacheKey' formats, which are different between the two engines.
' queryHash ' and ' planCacheKey ' formats which are different between the two engines .