Skip to content
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

Merged
merged 3 commits into from
Feb 7, 2025

Conversation

ankitsultana
Copy link
Contributor

This is required for PromQL functions. cc: @raghavyadav01

@ankitsultana ankitsultana added the timeseries-engine Tracking tag for generic time-series engine work label Feb 5, 2025
* 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) {
Copy link
Contributor Author

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);
Copy link
Contributor Author

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-commenter
Copy link

codecov-commenter commented Feb 6, 2025

Codecov Report

Attention: Patch coverage is 71.42857% with 10 lines in your changes missing coverage. Please review.

Project coverage is 63.64%. Comparing base (59551e4) to head (02393a8).
Report is 1677 commits behind head on master.

Files with missing lines Patch % Lines
...gation/function/TimeSeriesAggregationFunction.java 75.00% 6 Missing and 1 partial ⚠️
...e/pinot/tsdb/spi/series/BaseTimeSeriesBuilder.java 50.00% 2 Missing ⚠️
...imeseries/PhysicalTimeSeriesServerPlanVisitor.java 66.66% 0 Missing and 1 partial ⚠️
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     
Flag Coverage Δ
custom-integration1 100.00% <ø> (+99.99%) ⬆️
integration 100.00% <ø> (+99.99%) ⬆️
integration1 100.00% <ø> (+99.99%) ⬆️
integration2 0.00% <ø> (ø)
java-11 63.62% <71.42%> (+1.91%) ⬆️
java-21 63.54% <71.42%> (+1.91%) ⬆️
skip-bytebuffers-false 63.64% <71.42%> (+1.89%) ⬆️
skip-bytebuffers-true 63.52% <71.42%> (+35.79%) ⬆️
temurin 63.64% <71.42%> (+1.89%) ⬆️
unittests 63.64% <71.42%> (+1.89%) ⬆️
unittests1 56.17% <71.42%> (+9.28%) ⬆️
unittests2 34.02% <0.00%> (+6.29%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ankitsultana ankitsultana merged commit 159fc67 into apache:master Feb 7, 2025
20 of 21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
timeseries-engine Tracking tag for generic time-series engine work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants