-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[timeseries] Add Support for Passing Raw Time Values to Leaf Stage #15000
Conversation
* timeSeriesAggregate("m3ql", "MIN", valueExpr, timeBucketExpr, firstBucketValue, bucketLenSeconds, numBuckets, | ||
* "aggParam1=value1") | ||
* timeSeriesAggregate("m3ql", "MIN", valueExpr, timeExpr, timeUnit, offsetSeconds, firstBucketValue, | ||
* bucketLenSeconds, numBuckets, "aggParam1=value1") | ||
* </pre> | ||
*/ | ||
public TimeSeriesAggregationFunction(List<ExpressionContext> arguments) { |
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.
Note: At some point we'll add support for taking in another expression here, to extract the Exemplar values when appropriate.
* The rawTimeValue is in the same Time Unit as that passed to the {@link LeafTimeSeriesPlanNode}. | ||
* </p> | ||
*/ | ||
public abstract void addValueAtIndex(int timeBucketIndex, Double value, long rawTimeValue); |
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.
self-review: by default we should fallback to the existing addValueAtIndex method and ignore the rawTimeValue.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #15000 +/- ##
============================================
+ Coverage 61.75% 63.64% +1.89%
- Complexity 207 1483 +1276
============================================
Files 2436 2716 +280
Lines 133233 152237 +19004
Branches 20636 23530 +2894
============================================
+ Hits 82274 96895 +14621
- Misses 44911 48044 +3133
- Partials 6048 7298 +1250
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
This is required for PromQL functions. cc: @raghavyadav01