yashmayya commented on code in PR #17109:
URL: https://github.com/apache/pinot/pull/17109#discussion_r2566570796
##########
pinot-segment-local/src/main/java/org/apache/pinot/segment/local/aggregator/AvgValueAggregator.java:
##########
@@ -40,23 +40,13 @@ public DataType getAggregatedValueType() {
@Override
public AvgPair getInitialAggregatedValue(@Nullable Object rawValue) {
- if (rawValue == null) {
- return new AvgPair();
- }
- if (rawValue instanceof byte[]) {
- return deserializeAggregatedValue((byte[]) rawValue);
- } else {
- return new AvgPair(ValueAggregatorUtils.toDouble(rawValue), 1L);
- }
+ return processRawValue(rawValue);
Review Comment:
Makes sense, done.
--
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]