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:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]