diff options
author | Yanbo Liang <ybliang8@gmail.com> | 2015-11-27 11:48:01 -0800 |
---|---|---|
committer | Shivaram Venkataraman <shivaram@cs.berkeley.edu> | 2015-11-27 11:48:01 -0800 |
commit | ba02f6cb5a40511cefa511d410be93c035d43f23 (patch) | |
tree | ee02c7cff65e95b885d21d5b13c27a4ecd2623ea /R/pkg/NAMESPACE | |
parent | a374e20b5492c775f20d32e8fbddadbd8098a655 (diff) | |
download | spark-ba02f6cb5a40511cefa511d410be93c035d43f23.tar.gz spark-ba02f6cb5a40511cefa511d410be93c035d43f23.tar.bz2 spark-ba02f6cb5a40511cefa511d410be93c035d43f23.zip |
[SPARK-12025][SPARKR] Rename some window rank function names for SparkR
Change ```cumeDist -> cume_dist, denseRank -> dense_rank, percentRank -> percent_rank, rowNumber -> row_number``` at SparkR side.
There are two reasons that we should make this change:
* We should follow the [naming convention rule of R](http://www.inside-r.org/node/230645)
* Spark DataFrame has deprecated the old convention (such as ```cumeDist```) and will remove it in Spark 2.0.
It's better to fix this issue before 1.6 release, otherwise we will make breaking API change.
cc shivaram sun-rui
Author: Yanbo Liang <ybliang8@gmail.com>
Closes #10016 from yanboliang/SPARK-12025.
Diffstat (limited to 'R/pkg/NAMESPACE')
-rw-r--r-- | R/pkg/NAMESPACE | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/R/pkg/NAMESPACE b/R/pkg/NAMESPACE index 260c9edce6..5d04dd6aca 100644 --- a/R/pkg/NAMESPACE +++ b/R/pkg/NAMESPACE @@ -123,14 +123,14 @@ exportMethods("%in%", "count", "countDistinct", "crc32", - "cumeDist", + "cume_dist", "date_add", "date_format", "date_sub", "datediff", "dayofmonth", "dayofyear", - "denseRank", + "dense_rank", "desc", "endsWith", "exp", @@ -188,7 +188,7 @@ exportMethods("%in%", "next_day", "ntile", "otherwise", - "percentRank", + "percent_rank", "pmod", "quarter", "rand", @@ -200,7 +200,7 @@ exportMethods("%in%", "rint", "rlike", "round", - "rowNumber", + "row_number", "rpad", "rtrim", "second", |