[SERVER-67200] Add a new range QueryType to EncryptedFieldConfig Created: 10/Jun/22  Updated: 29/Oct/23  Resolved: 08/Jul/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 6.1.0-rc0

Type: Task Priority: Major - P3
Reporter: Davis Haupt (Inactive) Assignee: Reilly McBride
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-67202 Add encryption placeholder for range ... Closed
Backwards Compatibility: Fully Compatible
Sprint: QO 2022-06-27, QO 2022-07-11
Participants:

 Description   

This ticket will involve adding a new QueryType to the relevant IDL file and adding unit tests to make sure that the a parsed schema tree can contain a range index.

Parsing the query type config into a SchemaTree requires adding support for range indexes in ResolvedEncryptionInfo. Range will need to be added as a type to the `Fle2AlgorithmInt` struct.

There are other optional fields that are only relevant for the range index described in the product description:

{
          "queryType": "range", //required
          "min" : Number/Date,        // optional, only for range
          "max" : Number/Date,        // optional, only for range
          "sparsity" : Number,        // optional, only for range
          "contention": Number        // optional
       }

Information on the IDL: https://wiki.corp.mongodb.com/display/HGTC/Using+IDL+for+Code+Generation+in+the+Server



 Comments   
Comment by Githook User [ 08/Jul/22 ]

Author:

{'name': 'Reilly McBride', 'email': 'reilly.mcbride@mongodb.com'}

Message: SERVER-67200 Add a new range QueryType to EncryptedFieldConfig
Branch: master
https://github.com/mongodb/mongo/commit/f5d681c10a192ecc50e6ac338a18440f1cd836af

Comment by Githook User [ 08/Jul/22 ]

Author:

{'name': 'Reilly McBride', 'email': 'reilly.mcbride@mongodb.com'}

Message: SERVER-67200 Add a new range QueryType to EncryptedFieldConfig
Branch: master
https://github.com/10gen/mongo-enterprise-modules/commit/311cdc85cb8078aeb12c8edebec92a888e877793

Generated at Thu Feb 08 06:07:32 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.