Vectorize the numeric part of Earliest Aggregator#12483
Vectorize the numeric part of Earliest Aggregator#12483somu-imply wants to merge 9 commits intoapache:masterfrom
Conversation
| */ | ||
| public class LongFirstVectorAggregator extends NumericFirstVectorAggregator | ||
| { | ||
| long firstValue; |
| final boolean[] nullValueVector = valueSelector.getNullVector(); | ||
| boolean nullAbsent = false; | ||
| firstTime = buf.getLong(position); | ||
| //check if nullVector is found or not |
There was a problem hiding this comment.
nit: spacing on comments are inconsistent
| } | ||
|
|
||
| /** | ||
| * |
There was a problem hiding this comment.
would be good to have an overall description of the method be in the javadocs.
| } | ||
|
|
||
| /** | ||
| * |
There was a problem hiding this comment.
would be good to have an overall description of the method be in the javadocs.
|
|
||
| /** | ||
| * Vectorized version of on heap 'last' aggregator for column selectors with type LONG.. | ||
| */ |
There was a problem hiding this comment.
stale javadocs. Similar comment for other VectorAggregator classes
| } | ||
|
|
||
| @Test | ||
| public void testPrimitiveEarliestInSubqueryGroupBy() throws Exception |
There was a problem hiding this comment.
This doesn't look like a subquery that is being tested
suneet-s
left a comment
There was a problem hiding this comment.
| 0% (0/7) | 0% (0/4) | 73% (11/15) | org/apache/druid/query/aggregation/first/FloatFirstAggregatorFactory.java
Overall LGTM. This is the only thing that slightly concerns me. Can you look into why there's no coverage for changes to this class, while there is coverage for the other aggregator factories.
|
@suneet-s I have added additional tests that would cover the factory classes for all the three new additions. The coverage would improve now. @TSFenwick I have updated as per your review comments. |
|
@somu-imply It looks like there are still some failing tests, can you fix them up please.
|
|
Instead of conflict resolution that's gonna make things difficult, I'll make a fresh PR will close this once the new one's up and linked to this. And that is #14408 |
Vectorizing the earliest aggregator
where
This PR has: