-
Notifications
You must be signed in to change notification settings - Fork 38
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
object/search: Support numeric queries #2733
Conversation
260be1c
to
2e5ced2
Compare
for i := range prm.filters { | ||
switch prm.filters[i].Operation() { | ||
case object.MatchNumGT, object.MatchNumGE, object.MatchNumLT, object.MatchNumLE: | ||
// TODO: big math takes less code but inefficient |
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.
optimization, suggest to defer in separate issue
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #2733 +/- ##
==========================================
+ Coverage 28.86% 28.99% +0.12%
==========================================
Files 415 415
Lines 32485 32588 +103
==========================================
+ Hits 9376 9448 +72
- Misses 22265 22288 +23
- Partials 844 852 +8 ☔ View full report in Codecov by Sentry. |
dfea573
to
042c632
Compare
6d2a6bd
to
c5a8f40
Compare
c5a8f40
to
c786251
Compare
3f675e2
to
95079ba
Compare
95079ba
to
68d0a41
Compare
Recently, NeoFS object search protocol was extended with `<`, `<=`, `>` and `>=` numeric operators. These operators provide client comparison operations of decimal integers. `ObjectService.Search` server now supports numeric filters and handles them properly. Refs #2730. Signed-off-by: Leonard Lyubich <[email protected]>
Recently, NeoFS object search protocol was extended with `<`, `<=`, `>` and `>=` numeric operators. These operators provide client comparison operations of decimal integers. From now users can use `GT`, `GE`, `LT` and `LE` binary operators to form their numeric object queries for payload size, creation epoch or any other user-defined object attribute. Refs #2730. Signed-off-by: Leonard Lyubich <[email protected]>
68d0a41
to
b0e4662
Compare
WIP:
all ready, waiting for SDK merge