nizarhejazi commented on code in PR #9086: URL: https://github.com/apache/pinot/pull/9086#discussion_r934055231
########## pinot-segment-local/src/main/java/org/apache/pinot/segment/local/indexsegment/mutable/MutableSegmentImpl.java: ########## @@ -611,7 +612,11 @@ private void addNewRow(int docId, GenericRow row) { FieldSpec fieldSpec = indexContainer._fieldSpec; DataType dataType = fieldSpec.getDataType(); - value = indexContainer._valueAggregator.getInitialAggregatedValue(value); + if (indexContainer._isCountValueAggregator) { Review Comment: yes, related. Please check: `MutableSegmentImplIngestionAggregationTest.testCOUNT` test. -- 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: commits-unsubscr...@pinot.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For additional commands, e-mail: commits-h...@pinot.apache.org