[ https://issues.apache.org/jira/browse/SPARK-11720?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15003589#comment-15003589 ]
Jihong MA commented on SPARK-11720: ----------------------------------- Also, for mean, we treat Decimal differently vs. other numeric type, all other numeric type all converted to Double, for Decimal type, we continue to keep its type but increase its p/s to avoid precison loss. so for types that converted to Double, we can return Double.NaN, for decimal type, we can't return a double value but still null? > Return Double.NaN instead of null for Mean and Average when count = 0 > --------------------------------------------------------------------- > > Key: SPARK-11720 > URL: https://issues.apache.org/jira/browse/SPARK-11720 > Project: Spark > Issue Type: Sub-task > Reporter: Jihong MA > > change the default behavior of mean in case of count = 0 from null to > Double.NaN, to make it inline with all other univariate stats function. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org