davecromberge commented on code in PR #14373:
URL: https://github.com/apache/pinot/pull/14373#discussion_r1853925063
##########
pinot-core/src/main/java/org/apache/pinot/core/segment/processing/aggregator/DistinctCountCPCSketchAggregator.java:
##########
@@ -30,7 +31,7 @@ public DistinctCountCPCSketchAggregator() {
}
@Override
- public Object aggregate(Object value1, Object value2) {
+ public Object aggregate(Object value1, Object value2, Map<String, String>
functionParameters) {
Review Comment:
@swaminathanmanish is your idea to change the signature as follows:
```
public Object aggregate(Object value1, Object value2, Object
functionParameters)
```
And then each `ValueAggregator` subtype casts this Object to a concrete and
more specific type? To my knowledge, there is no other general purpose type
that can be used across all ValueAggregators since each ValueAggregator will
have its own function parameters.
It would help to flesh out your idea a little more so that I can try it out.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]