-
Notifications
You must be signed in to change notification settings - Fork 9
feat: uniqCount aggregation #298
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
base: main
Are you sure you want to change the base?
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #298 +/- ##
==========================================
+ Coverage 71.06% 71.25% +0.18%
==========================================
Files 201 201
Lines 14773 14842 +69
==========================================
+ Hits 10498 10575 +77
+ Misses 3527 3519 -8
Partials 748 748 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
6b82090 to
10737f2
Compare
2ed2787 to
025ec18
Compare
db9b3a3 to
5bb3020
Compare
| } | ||
| if errMessage == consts.ErrTooManyFieldValues.Error() { | ||
| return nil, source, fmt.Errorf("store forbids aggregation request: %w", consts.ErrTooManyFieldValues) | ||
| } |
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.
we need to check new resp.Code later as well. on line 614-625
| aggs[i] = seq.AggregatableSamples{ | ||
| SamplesByBin: to, | ||
| NotExists: agg.NotExists, | ||
| ValuesPool: stringPool, |
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.
nit: seem like we can just do ValuesPool: agg.ValuesPool, and remove stringPool variable
| } | ||
| for idx := range hist.Values { | ||
| h.Values[idx] = struct{}{} | ||
| } |
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.
nit: seems like we can use maps.Copy here
Description
Fixes #295