diff options
author | Arun Banala <arun.banala@mongodb.com> | 2022-09-29 10:28:15 -0700 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-09-29 19:38:56 +0000 |
commit | 87b60722e3c5ddaf7bc73d1ba08b31b437ef4f48 (patch) | |
tree | cca2e4b74a327ff4ab634a8c41e8c9cf406c9c97 | |
parent | be197bff5315f3990a598dff20a89d32a24b1e5e (diff) | |
download | mongo-87b60722e3c5ddaf7bc73d1ba08b31b437ef4f48.tar.gz |
SERVER-70114 Fix the feature flag check in 'null_query_semantics.js'
-rw-r--r-- | jstests/core/null_query_semantics.js | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/jstests/core/null_query_semantics.js b/jstests/core/null_query_semantics.js index 34e605db283..cf4cc836412 100644 --- a/jstests/core/null_query_semantics.js +++ b/jstests/core/null_query_semantics.js @@ -1,4 +1,7 @@ // Tests the behavior of queries with a {$eq: null} or {$ne: null} predicate. +// @tags: [ +// uses_column_store_index, +// ] // (function() { "use strict"; @@ -6,6 +9,7 @@ load("jstests/aggregation/extras/utils.js"); // For 'resultsEq'. // For areAllCollectionsClustered. load("jstests/libs/clustered_collections/clustered_collection_util.js"); +load("jstests/libs/sbe_util.js"); // For checkSBEEnabled. function extractAValues(results) { return results.map(function(res) { @@ -701,9 +705,11 @@ const keyPatterns = [ {keyPattern: {"$**": 1}}, {keyPattern: {"a.$**": 1}} ]; + // Include Columnstore Index only if FF is enabled and collection is not clustered. -if (TestData.setParameters.hasOwnProperty("featureFlagColumnstoreIndexes") && - !ClusteredCollectionUtil.areAllCollectionsClustered(db.getMongo())) { +const columnstoreEnabled = checkSBEEnabled( + db, ["featureFlagColumnstoreIndexes", "featureFlagSbeFull"], true /* checkAllNodes */); +if (columnstoreEnabled && !ClusteredCollectionUtil.areAllCollectionsClustered(db.getMongo())) { keyPatterns.push({keyPattern: {"$**": "columnstore"}}); } |