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

Handling null cases in sum,min,max series builders #14084

Merged
merged 4 commits into from
Sep 26, 2024

Conversation

raghavyadav01
Copy link
Contributor

  • Handling null cases in sum,min,max series builders.
  • Tested and verified the changes.

Copy link
Contributor

@ankitsultana ankitsultana left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for addressing feedback. Let's make sure tests work though. Looks like some GH Outage right now.

Side-note: The code is most likely not good for performance and there may be better ways to do this. We can follow-up in Phase-3. From Uber side we plan to run a bunch of benchmarks too.

@codecov-commenter
Copy link

codecov-commenter commented Sep 25, 2024

Codecov Report

Attention: Patch coverage is 25.00000% with 3 lines in your changes missing coverage. Please review.

Project coverage is 63.98%. Comparing base (59551e4) to head (c3db6ca).
Report is 1091 commits behind head on master.

Files with missing lines Patch % Lines
...tsdb/spi/series/builders/MaxTimeSeriesBuilder.java 0.00% 0 Missing and 1 partial ⚠️
...tsdb/spi/series/builders/MinTimeSeriesBuilder.java 0.00% 0 Missing and 1 partial ⚠️
.../spi/series/builders/SummingTimeSeriesBuilder.java 50.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master   #14084      +/-   ##
============================================
+ Coverage     61.75%   63.98%   +2.23%     
- Complexity      207     1538    +1331     
============================================
  Files          2436     2596     +160     
  Lines        133233   143296   +10063     
  Branches      20636    21949    +1313     
============================================
+ Hits          82274    91684    +9410     
+ Misses        44911    44862      -49     
- Partials       6048     6750     +702     
Flag Coverage Δ
custom-integration1 100.00% <ø> (+99.99%) ⬆️
integration 100.00% <ø> (+99.99%) ⬆️
integration1 100.00% <ø> (+99.99%) ⬆️
integration2 0.00% <ø> (ø)
java-11 63.94% <25.00%> (+2.23%) ⬆️
java-21 63.86% <25.00%> (+2.23%) ⬆️
skip-bytebuffers-false 63.97% <25.00%> (+2.23%) ⬆️
skip-bytebuffers-true 63.84% <25.00%> (+36.11%) ⬆️
temurin 63.98% <25.00%> (+2.23%) ⬆️
unittests 63.97% <25.00%> (+2.23%) ⬆️
unittests1 55.55% <25.00%> (+8.66%) ⬆️
unittests2 34.46% <0.00%> (+6.73%) ⬆️

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 7668b21 into apache:master Sep 26, 2024
21 checks passed
@@ -39,7 +39,7 @@ public MaxTimeSeriesBuilder(String id, TimeBuckets timeBuckets, List<String> tag

@Override
public void addValueAtIndex(int timeBucketIndex, Double value) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggest adding @Nullable annotation both to base class and the overrides

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ack. Will add it in the next PR I am working on.

@ankitsultana ankitsultana added the timeseries-engine Tracking tag for generic time-series engine work label Oct 22, 2024
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