GitHub user ted-yu opened a pull request:
https://github.com/apache/spark/pull/9332
SPARK-11371 Make "mean" an alias for "avg" operator
From Reynold in the thread 'Exception when using some aggregate operators'
(http://search-hadoop.com/m/q3RTt0xFr22nXB4/):
I don't think these are bugs. The SQL standard for average is "avg", not
"mean". Similarly, a distinct count is supposed to be written as
"count(distinct col)", not "countDistinct(col)".
We can, however, make "mean" an alias for "avg" to improve compatibility
between DataFrame and SQL.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/ted-yu/spark master
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/9332.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 #9332
----
commit f1447f0cba860a84ed60929b4871936198fe4150
Author: tedyu <[email protected]>
Date: 2015-10-28T14:12:12Z
SPARK-11371 Make "mean" an alias for "avg" operator
----
---
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]