[MONGOCRYPT-478] Create FLE2FindRangePayload with the MinCover Created: 22/Aug/22  Updated: 28/Oct/23  Resolved: 05/Oct/22

Status: Closed
Project: Libmongocrypt
Component/s: None
Affects Version/s: None
Fix Version/s: 1.7.0, 1.7.0-alpha0

Type: Task Priority: Unknown
Reporter: Kevin Albertson Assignee: Kevin Albertson
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-69013 Attach mincover algorithms to fle_crypto Closed
Epic Link: libmongocrypt Support for Range Index
Server Compat: 6.2

 Description   

Scope

  • Create FLE2FindRangePayload with the MinCover


 Comments   
Comment by Githook User [ 05/Oct/22 ]

Author:

{'name': 'Kevin Albertson', 'email': 'kevin.albertson@mongodb.com', 'username': 'kevinAlbs'}

Message: MONGOCRYPT-478 Create FLE2FindRangePayload with the MinCover (#469)

  • add mc_FLE2FindRangePayload_t
  • Do not set unnecessary ciphertext fields

The FLE2 client->server payloads do not use original_bson_type or key_id

  • return error on 0 sparsity

This avoids a % 0 operation, and a difficult to diagnose error

  • support excluding lower or upper bound in mincover
  • add missing newline in test assertion
Comment by Githook User [ 28/Sep/22 ]

Author:

{'name': 'Kevin Albertson', 'email': 'kevin.albertson@mongodb.com', 'username': 'kevinAlbs'}

Message: MONGOCRYPT-478 update payloads and terms (#468)

  • Update range placeholder payloads

FLE2RangeSpec is renamed to FLE2RangeFindSpec.
FLE2RangeSpec has new indexMin/indexMax fields.
min/max refers to index. lowerBound/upperBound refers to query.
sparsity is now int64_t.

  • Note terminology distinction of min/max and lowerBound/upperBound
  • fix documentation for FLE2InsertUpdatePayload

The bson does not always have 16 byte length

  • fix comment in _mongocrypt_fle2_placeholder_to_insert_update_ciphertextForRange

index bounds are referred to as min/max

  • rename getMinCover args range_min/range_max to lowerBound/upperBound
  • fix assertions with sparsity

cast sparsity to size_t

validate sparsity fits within a size_t
Branch: master
https://github.com/mongodb/libmongocrypt/commit/6b038b3e19cb2e62d4374d8325eca8c7e1517731

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