GitHub user JihongMA opened a pull request:
https://github.com/apache/spark/pull/9705
Spark 11720
return Double.NaN for mean/average when count == 0 for all numeric types
that is converted to Double, Decimal type continue to return null.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/JihongMA/spark-1 SPARK-11720
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/9705.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #9705
----
commit ab5f57da364e9e0b5db4b004e1fb1778726b47c6
Author: JihongMa <[email protected]>
Date: 2015-11-13T04:02:45Z
rebase with upstream
commit 95af5c81a42d15bb307cf67ecf6e61ce2875f936
Author: JihongMa <[email protected]>
Date: 2015-11-13T04:04:38Z
rebase with upstream
commit a42f736aaf9b3dd24b7fa9f14276e491b93b053b
Author: JihongMa <[email protected]>
Date: 2015-11-13T21:55:58Z
handle NaN for avg/mean
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]