[SERVER-67964] Make sparsity an optional field on queryTypeConfig Created: 11/Jul/22  Updated: 29/Oct/23  Resolved: 12/Jul/22

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

Type: Bug Priority: Major - P3
Reporter: Reilly McBride Assignee: Reilly McBride
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Related
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: QO 2022-07-25
Participants:
Linked BF Score: 162

 Description   

 

TASK: just changing sparsity to optional (QueryTypeConfig field in encryption_fields.idl)

 

CONSIDERATIONS:

  • I had originally NOT made sparsity optional because the documentation specified that sparsity should have a default value (0, at least for now).
  • Something can't be optional & have a default value. 
  • If I make sparsity optional, we need to enforce the default value somewhere else
    • I considered doing this in resolved_encryption_info.cpp, but since the query info is always a const, this wasn't possible

So, making it optional is no problem as long as we enforce the default value somewhere else (i.e., not resolved_encryption_info), which I'm sure is possible.

 



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

Author:

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

Message: SERVER-67964 Make sparsity an optional field on queryTypeConfig
Branch: master
https://github.com/mongodb/mongo/commit/112e315f599f08c662526a3371813e45358a7fa8

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