summaryrefslogtreecommitdiff
path: root/jstests/core/collation.js
diff options
context:
space:
mode:
authorArun Banala <arun.banala@mongodb.com>2022-12-28 13:32:46 -0800
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2023-01-05 18:45:49 +0000
commiteb8910b86a503d0756371a9f69af3baf5ebd2044 (patch)
treee3d94de7d85c7bb0dded59991f799d0ac276448f /jstests/core/collation.js
parent2db2ccc12b3e85e12f7f5586368ab4b15ec0c16a (diff)
downloadmongo-eb8910b86a503d0756371a9f69af3baf5ebd2044.tar.gz
SERVER-72416 Find and findAndModify commands' ExpressionContext should inherit collection level collation
(cherry picked from commit 2f1b039897aa55eb3007abbe1020e6e4967b4140)
Diffstat (limited to 'jstests/core/collation.js')
-rw-r--r--jstests/core/collation.js5
1 files changed, 1 insertions, 4 deletions
diff --git a/jstests/core/collation.js b/jstests/core/collation.js
index c84371bddbc..dd7052d4397 100644
--- a/jstests/core/collation.js
+++ b/jstests/core/collation.js
@@ -24,7 +24,6 @@ load("jstests/libs/index_catalog_helpers.js");
load("jstests/concurrency/fsm_workload_helpers/server_types.js");
// For isReplSet
load("jstests/libs/fixture_helpers.js");
-load("jstests/libs/sbe_explain_helpers.js"); // For engineSpecificAssertion.
// For areAllCollectionsClustered.
load("jstests/libs/clustered_collections/clustered_collection_util.js");
@@ -755,9 +754,7 @@ if (!isClustered) {
assert.commandWorked(testDb.createCollection(coll.getName(), {collation: {locale: "en_US"}}));
explainRes = coll.explain("executionStats").find({_id: "foo"}).finish();
assert.commandWorked(explainRes);
- let classicAssert = null !== getPlanStage(getWinningPlan(explainRes.queryPlanner), "IDHACK");
- let sbeAssert = null !== getPlanStage(getWinningPlan(explainRes.queryPlanner), "IXSCAN");
- engineSpecificAssertion(classicAssert, sbeAssert, testDb, explainRes);
+ assert.neq(null, getPlanStage(explainRes.executionStats.executionStages, "IDHACK"), explainRes);
// Find on _id should use idhack stage when explicitly given query collation matches
// collection default.