[
https://issues.apache.org/jira/browse/SPARK-11720?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15004210#comment-15004210
]
Xiangrui Meng commented on SPARK-11720:
---------------------------------------
If we don't have Decimal.NaN implemented, it is okay to return null. I don't
think we want to promise consistency in future releases. Let's try the best we
can in 1.6 and see feedback from users.
> 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: [email protected]
For additional commands, e-mail: [email protected]