You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by GitBox <gi...@apache.org> on 2019/05/22 19:44:06 UTC

[GitHub] [incubator-druid] himanshug commented on issue #7731: fix AggregatorFactory.finalizeComputation implementations to be ok with null inputs

himanshug commented on issue #7731: fix AggregatorFactory.finalizeComputation implementations to be ok with null inputs
URL: https://github.com/apache/incubator-druid/pull/7731#issuecomment-494931501
 
 
   LGTM in general. But I had a thought of adding following method to AggregatorFactory
   
   ```
   @Nullable
   public final Object finalizeComputationWithNull(@Nullable Object object)
   {
       return object == null ? null : finalizeComputation(object);
   }
   ```
   
   and use above in all of druid code instead of `finalizeComputation(..)` . This would fix the problem for extensions not in druid codebase and also one less thing to worry by future aggregator factory writers.
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org