walterddr commented on code in PR #10846: URL: https://github.com/apache/pinot/pull/10846#discussion_r1248167425
########## pinot-core/src/main/java/org/apache/pinot/core/query/reduce/function/InternalReduceFunctions.java: ########## @@ -35,17 +33,10 @@ private InternalReduceFunctions() { } @ScalarFunction - public static double skewnessReduce(PinotFourthMoment fourthMoment) { - return fourthMoment.skew(); - } - - @ScalarFunction - public static double kurtosisReduce(PinotFourthMoment fourthMoment) { - return fourthMoment.kurtosis(); - } - - @ScalarFunction - public static int countDistinctReduce(Set<?> values) { - return values.size(); + public static Double avgReduce(Double intermediateResultSum, Long intermediateResultCount) { Review Comment: `@ScalarFunction(nullableParameters = true)` -- 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