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 2020/12/03 12:00:48 UTC

[GitHub] [druid] andrewbridge commented on issue #10611: Custom, multi-column aggregation best practice

andrewbridge commented on issue #10611:
URL: https://github.com/apache/druid/issues/10611#issuecomment-737898313


   To follow up, I've copied examples of aggregators which do not appear to use an associated `Serde` class:
   
   ```java
   @Override
     public List<? extends Module> getJacksonModules()
     {
       return ImmutableList.of(
           new SimpleModule(getClass().getSimpleName())
                   .registerSubtypes(
                           new NamedType(DoubleMinOfAggregatorFactory.class, DoubleMinOfAggregatorFactory.TYPE_NAME)
                   ).addSerializer(
                           DoubleMinOfCollector.class,
                           DoubleMinOfCollector.Serializer.INSTANCE
                   )
       );
     }
   ```
   
   This allows my tests to pass as expected. Are there any issues with using this pattern over the `Serde` class pattern? Or am I entirely misunderstanding and the two are unrelated?


----------------------------------------------------------------
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



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