-
-
Notifications
You must be signed in to change notification settings - Fork 671
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
reuse stats for average #1785
reuse stats for average #1785
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1785 +/- ##
=======================================
Coverage 94.11% 94.12%
=======================================
Files 282 282
Lines 53113 53079 -34
=======================================
- Hits 49986 49959 -27
+ Misses 3127 3120 -7
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
src/aggregation/metric/average.rs
Outdated
/// Contains mergeable version of average data. | ||
#[derive(Default, Clone, Debug, PartialEq, Serialize, Deserialize)] | ||
pub struct IntermediateAverage { | ||
pub(crate) sum: f64, | ||
pub(crate) doc_count: u64, | ||
pub(crate) doc_count: u32, |
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.
Is there any inherent limit so that this is limited to 2^32 documents?
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.
Actually that change is incorrect, it's only valid on a segment level
* reuse stats for average * fix count type
* reuse stats for average * fix count type
No description provided.