[jira] [Commented] (SPARK-11720) Return Double.NaN instead of null for Mean and Average when count = 0

2015-11-13 Thread Xiangrui Meng (JIRA)
[ https://issues.apache.org/jira/browse/SPARK-11720?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15004206#comment-15004206 ] Xiangrui Meng commented on SPARK-11720: --- Computing average in the normal way should be sufficient.

[jira] [Commented] (SPARK-11720) Return Double.NaN instead of null for Mean and Average when count = 0

2015-11-13 Thread Xiangrui Meng (JIRA)
[ https://issues.apache.org/jira/browse/SPARK-11720?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15004210#comment-15004210 ] Xiangrui Meng commented on SPARK-11720: --- If we don't have Decimal.NaN implemented, it is okay to

[jira] [Commented] (SPARK-11720) Return Double.NaN instead of null for Mean and Average when count = 0

2015-11-13 Thread Apache Spark (JIRA)
[ https://issues.apache.org/jira/browse/SPARK-11720?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15004791#comment-15004791 ] Apache Spark commented on SPARK-11720: -- User 'JihongMA' has created a pull request for this issue:

[jira] [Commented] (SPARK-11720) Return Double.NaN instead of null for Mean and Average when count = 0

2015-11-12 Thread Jihong MA (JIRA)
[ https://issues.apache.org/jira/browse/SPARK-11720?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15003558#comment-15003558 ] Jihong MA commented on SPARK-11720: --- [~mengxr] the implementation of average is not a numerical stable

[jira] [Commented] (SPARK-11720) Return Double.NaN instead of null for Mean and Average when count = 0

2015-11-12 Thread Jihong MA (JIRA)
[ https://issues.apache.org/jira/browse/SPARK-11720?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15003589#comment-15003589 ] Jihong MA commented on SPARK-11720: --- Also, for mean, we treat Decimal differently vs. other numeric