diff options
Diffstat (limited to 'jstests/core/distinct_index1.js')
-rw-r--r-- | jstests/core/distinct_index1.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/jstests/core/distinct_index1.js b/jstests/core/distinct_index1.js index 8d82d56ff36..0caf0e64fbc 100644 --- a/jstests/core/distinct_index1.js +++ b/jstests/core/distinct_index1.js @@ -2,7 +2,6 @@ * Analyzes execution stats for indexed distinct. * @tags: [ * assumes_balancer_off, - * sbe_incompatible, * ] */ (function() { @@ -79,6 +78,6 @@ assert.commandWorked(coll.dropIndexes()); assert.commandWorked(coll.createIndex({a: "hashed"})); explain = getDistinctExplainWithExecutionStats("a", {$or: [{a: 3}, {a: 5}]}); assert.eq(188, explain.executionStats.nReturned); -const indexScanStage = getPlanStage(explain.executionStats.executionStages, "IXSCAN"); +const indexScanStage = getPlanStage(getWinningPlan(explain.queryPlanner), "IXSCAN"); assert.eq("hashed", indexScanStage.keyPattern.a); })(); |