-
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
Add LASTWITHTIME aggregate function support #7315 #7584
Conversation
...c/main/java/org/apache/pinot/core/query/aggregation/function/AggregationFunctionFactory.java
Outdated
Show resolved
Hide resolved
...n/java/org/apache/pinot/core/query/aggregation/function/LastWithTimeAggregationFunction.java
Outdated
Show resolved
Hide resolved
...n/java/org/apache/pinot/core/query/aggregation/function/LastWithTimeAggregationFunction.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.
Good in general, great job
...egment-local/src/main/java/org/apache/pinot/segment/local/customobject/LastWithTimePair.java
Outdated
Show resolved
Hide resolved
...egment-local/src/main/java/org/apache/pinot/segment/local/customobject/LastWithTimePair.java
Outdated
Show resolved
Hide resolved
...egment-local/src/main/java/org/apache/pinot/segment/local/customobject/LastWithTimePair.java
Outdated
Show resolved
Hide resolved
...n/java/org/apache/pinot/core/query/aggregation/function/LastWithTimeAggregationFunction.java
Outdated
Show resolved
Hide resolved
.../java/org/apache/pinot/core/query/aggregation/function/DistinctCountAggregationFunction.java
Outdated
Show resolved
Hide resolved
...n/java/org/apache/pinot/core/query/aggregation/function/LastWithTimeAggregationFunction.java
Outdated
Show resolved
Hide resolved
I addressed all the comments and finished the testing. Please take another look! @Jackie-Jiang @lakshmanan-v @pjpringle |
...t-segment-local/src/main/java/org/apache/pinot/segment/local/customobject/ValueTimePair.java
Outdated
Show resolved
Hide resolved
pinot-core/src/main/java/org/apache/pinot/core/common/ObjectSerDeUtils.java
Outdated
Show resolved
Hide resolved
pinot-core/src/main/java/org/apache/pinot/core/common/ObjectSerDeUtils.java
Outdated
Show resolved
Hide resolved
...c/main/java/org/apache/pinot/core/query/aggregation/function/AggregationFunctionFactory.java
Outdated
Show resolved
Hide resolved
...c/main/java/org/apache/pinot/core/query/aggregation/function/AggregationFunctionFactory.java
Outdated
Show resolved
Hide resolved
...apache/pinot/core/query/aggregation/function/LastDoubleValueWithTimeAggregationFunction.java
Outdated
Show resolved
Hide resolved
...t-segment-local/src/main/java/org/apache/pinot/segment/local/customobject/ValueTimePair.java
Outdated
Show resolved
Hide resolved
...apache/pinot/core/query/aggregation/function/LastDoubleValueWithTimeAggregationFunction.java
Outdated
Show resolved
Hide resolved
...n/java/org/apache/pinot/core/query/aggregation/function/LastWithTimeAggregationFunction.java
Outdated
Show resolved
Hide resolved
...apache/pinot/core/query/aggregation/function/LastDoubleValueWithTimeAggregationFunction.java
Show resolved
Hide resolved
Codecov Report
@@ Coverage Diff @@
## master #7584 +/- ##
==========================================
- Coverage 32.16% 27.60% -4.57%
==========================================
Files 1513 1566 +53
Lines 75557 79579 +4022
Branches 11055 11795 +740
==========================================
- Hits 24305 21965 -2340
- Misses 49156 55619 +6463
+ Partials 2096 1995 -101
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
@Jackie-Jiang @lakshmanan-v I have already addressed the comments. Please take another look and leave any comment you have! Thanks a lot! |
...c/main/java/org/apache/pinot/core/query/aggregation/function/AggregationFunctionFactory.java
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.
lgtm. Please wait for @Jackie-Jiang's approval before merging.
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 with minor comments. Great work!
pinot-core/src/main/java/org/apache/pinot/core/common/ObjectSerDeUtils.java
Outdated
Show resolved
Hide resolved
pinot-core/src/main/java/org/apache/pinot/core/common/ObjectSerDeUtils.java
Outdated
Show resolved
Hide resolved
...c/main/java/org/apache/pinot/core/query/aggregation/function/AggregationFunctionFactory.java
Outdated
Show resolved
Hide resolved
...apache/pinot/core/query/aggregation/function/LastDoubleValueWithTimeAggregationFunction.java
Show resolved
Hide resolved
...n/java/org/apache/pinot/core/query/aggregation/function/LastWithTimeAggregationFunction.java
Outdated
Show resolved
Hide resolved
thanks! looking forward to giving this a go. can we now add functionality to the segment compaction to use this operator, e.g. take last value every hour |
@pjpringle any sample change? I can add it. |
Adding aggregate function to return last value of time-based data set.
Description
Adding aggregate function to return last value of time-based data set.
Upgrade Notes
Does this PR prevent a zero down-time upgrade? (Assume upgrade order: Controller, Broker, Server, Minion)
backward-incompat
, and complete the section below on Release Notes)Does this PR fix a zero-downtime upgrade introduced earlier?
backward-incompat
, and complete the section below on Release Notes)Does this PR otherwise need attention when creating release notes? Things to consider:
release-notes
and complete the section on Release Notes)Release Notes
Documentation
Will raise an another PR to update the documentation once this PR is approved and the changes are finalized.