GitHub user JoshRosen opened a pull request:
https://github.com/apache/spark/pull/6218
[SPARK-7687] DataFrame.describe() should cast all aggregates to doubles
In `DataFrame.describe()`, the `count` aggregate produces an integer, but
all other aggregates produce doubles. Because the output schema of
`describe()` is declared as `(String, [Double, ...])`, we should cast the
result of all aggregates to double.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/JoshRosen/spark SPARK-7687
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/6218.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 #6218
----
commit bedb4909a1abd88c390d7cbd902a25c8691f38f3
Author: Josh Rosen <[email protected]>
Date: 2015-05-17T08:54:12Z
Add failing regression test for SPARK-7687
commit 696206cb7cad45b414c2b54294fa3400fa176ef2
Author: Josh Rosen <[email protected]>
Date: 2015-05-17T08:54:27Z
Cast to double to fix SPARK-7687
----
---
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]