-
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
Handling null cases in sum,min,max series builders #14084
Conversation
raghavyadav01
commented
Sep 25, 2024
- Handling null cases in sum,min,max series builders.
- Tested and verified the changes.
...series-spi/src/main/java/org/apache/pinot/tsdb/spi/series/builders/MaxTimeSeriesBuilder.java
Outdated
Show resolved
Hide resolved
...series-spi/src/main/java/org/apache/pinot/tsdb/spi/series/builders/MaxTimeSeriesBuilder.java
Outdated
Show resolved
Hide resolved
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.
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 ReportAttention: Patch coverage is
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
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
...series-spi/src/main/java/org/apache/pinot/tsdb/spi/series/builders/MinTimeSeriesBuilder.java
Outdated
Show resolved
Hide resolved
@@ -39,7 +39,7 @@ public MaxTimeSeriesBuilder(String id, TimeBuckets timeBuckets, List<String> tag | |||
|
|||
@Override | |||
public void addValueAtIndex(int timeBucketIndex, Double value) { |
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.
Suggest adding @Nullable
annotation both to base class and the overrides
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.
Ack. Will add it in the next PR I am working on.