-
Notifications
You must be signed in to change notification settings - Fork 25.2k
Add first_over_time #127656
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
Add first_over_time #127656
Conversation
Pinging @elastic/es-storage-engine (Team:StorageEngine) |
@@ -97,7 +97,7 @@ public class LastOverTime$Type$Aggregator { | |||
void collectValue(int groupId, long timestamp, $type$ value) { | |||
if (groupId < timestamps.size()) { | |||
// TODO: handle multiple values? | |||
if (hasValue(groupId) == false || timestamps.get(groupId) < timestamp) { | |||
if (hasValue(groupId) == false || timestamps.get(groupId) $if(Last)$<$else$>$endif$ timestamp) { |
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.
lool nice
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.
Cute!
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!
This change adds support for first_over_time for time-series data streams, similar to last_over_time.