-
Type: Task
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
Fully Compatible
-
Execution Team 2021-04-05
New indexes need to inherit the default collation from the time-series collection. This is consistent with behavior for regular collections.
This is incorrect behavior:
> db.createCollection('ts', {timeseries: {timeField: 'time', metaField: 'meta'}, collation: {locale: 'en', strength: 1, numericOrdering: true}}) { "ok" : 1 } > db.ts.createIndex({meta: 1}) { "numIndexesBefore" : 0, "numIndexesAfter" : 1, "createdCollectionAutomatically" : false, "ok" : 1 } > db.runCommand({listIndexes: "ts"}) { "cursor" : { "id" : NumberLong(0), "ns" : "test.ts", "firstBatch" : [ { "v" : 2, "key" : { "meta" : 1 }, "name" : "meta_1" } ] }, "ok" : 1 }
Notice that the new index does not have a collation.
- is related to
-
SERVER-55591 Store time-series collection metadata in the catalog entry for the buckets collection
- Closed
-
SERVER-54050 time-series collections should use their collation for comparisons
- Closed
- related to
-
SERVER-55721 Complete TODO listed in SERVER-55096
- Closed
-
SERVER-55708 remove unused parameter from IndexDescriptor::isIndexVersionAllowedForCreation()
- Closed