-
Notifications
You must be signed in to change notification settings - Fork 909
GODRIVER-3123 QE Range Protocol V2 #1723
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
API Change Report./mongo/optionsincompatible changesRangeOptions.Sparsity: changed from int64 to *int64 compatible changes(*RangeOptions).SetTrimFactor: added ./x/mongo/driver/mongocrypt/optionsincompatible changesExplicitRangeOptions.Sparsity: changed from int64 to *int64 compatible changesExplicitRangeOptions.TrimFactor: added |
23f829d
to
3aed8b9
Compare
3aed8b9
to
14f2941
Compare
ad04b31
to
d198255
Compare
d198255
to
3f7bc45
Compare
a5f3b4b
to
249120b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
mongo/options/encryptoptions.go
Outdated
@@ -81,7 +82,7 @@ func (e *EncryptOptions) SetContentionFactor(contentionFactor int64) *EncryptOpt | |||
return e | |||
} | |||
|
|||
// SetRangeOptions specifies the options to use for explicit encryption with range. It is only valid to set if algorithm is "rangePreview". | |||
// SetRangeOptions specifies the options to use for explicit encryption with range. It is only valid to set if algorithm is "range". |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should the algorithm be "Range"
, with a capital "R"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was following the specs but I think you are correct. Will commit a specs PR.
mongo/options/encryptoptions.go
Outdated
@@ -81,7 +82,7 @@ func (e *EncryptOptions) SetContentionFactor(contentionFactor int64) *EncryptOpt | |||
return e | |||
} | |||
|
|||
// SetRangeOptions specifies the options to use for explicit encryption with range. It is only valid to set if algorithm is "rangePreview". | |||
// SetRangeOptions specifies the options to use for explicit encryption with range. It is only valid to set if algorithm is "range". |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Optional: Add a blank line here to make the "Beta" warning more visible.
// SetRangeOptions specifies the options to use for explicit encryption with range. It is only valid to set if algorithm is "range". | |
// SetRangeOptions specifies the options to use for explicit encryption with range. It is only valid to set if algorithm is "range". | |
// |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we add Range
to the list of supported values for EncryptOptions.SetAlgorithm
?
return ro | ||
} | ||
|
||
// SetTrimFactor sets the range index trim factor. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Optional: Add a blank line here to make the "Beta" warning more visible.
// SetTrimFactor sets the range index trim factor. | |
// SetTrimFactor sets the range index trim factor. | |
// |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These notes will be removed in GODRIVER-3195 shortly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! 👍
(cherry picked from commit a766876)
Co-authored-by: Qingyang Hu <103950869+qingyang-hu@users.noreply.github.com>
GODRIVER-3123
GODRIVER-3279
GODRIVER-3195
Summary
RangeOpts.trimFactor
.RangeOpts.sparsity
optional.rangePreview
torange
.Background & Motivation