diff options
author | Yu ISHIKAWA <yuu.ishikawa@gmail.com> | 2015-08-12 18:33:27 -0700 |
---|---|---|
committer | Shivaram Venkataraman <shivaram@cs.berkeley.edu> | 2015-08-12 18:33:27 -0700 |
commit | f4bc01f1f33a93e6affe5c8a3e33ffbd92d03f38 (patch) | |
tree | 025d97eb1343830aa7f276bc0ec47bc1552cc3aa /R/pkg/DESCRIPTION | |
parent | 0d1d146c220f0d47d0e62b368d5b94d3bd9dd197 (diff) | |
download | spark-f4bc01f1f33a93e6affe5c8a3e33ffbd92d03f38.tar.gz spark-f4bc01f1f33a93e6affe5c8a3e33ffbd92d03f38.tar.bz2 spark-f4bc01f1f33a93e6affe5c8a3e33ffbd92d03f38.zip |
[SPARK-9855] [SPARKR] Add expression functions into SparkR whose params are simple
I added lots of expression functions for SparkR. This PR includes only functions whose params are only `(Column)` or `(Column, Column)`. And I think we need to improve how to test those functions. However, it would be better to work on another issue.
## Diff Summary
- Add lots of functions in `functions.R` and their generic in `generic.R`
- Add aliases for `ceiling` and `sign`
- Move expression functions from `column.R` to `functions.R`
- Modify `rdname` from `column` to `functions`
I haven't supported `not` function, because the name has a collesion with `testthat` package. I didn't think of the way to define it.
## New Supported Functions
```
approxCountDistinct
ascii
base64
bin
bitwiseNOT
ceil (alias: ceiling)
crc32
dayofmonth
dayofyear
explode
factorial
hex
hour
initcap
isNaN
last_day
length
log2
ltrim
md5
minute
month
negate
quarter
reverse
round
rtrim
second
sha1
signum (alias: sign)
size
soundex
to_date
trim
unbase64
unhex
weekofyear
year
datediff
levenshtein
months_between
nanvl
pmod
```
## JIRA
[[SPARK-9855] Add expression functions into SparkR whose params are simple - ASF JIRA](https://issues.apache.org/jira/browse/SPARK-9855)
Author: Yu ISHIKAWA <yuu.ishikawa@gmail.com>
Closes #8123 from yu-iskw/SPARK-9855.
Diffstat (limited to 'R/pkg/DESCRIPTION')
-rw-r--r-- | R/pkg/DESCRIPTION | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/R/pkg/DESCRIPTION b/R/pkg/DESCRIPTION index 4949d86d20..83e6489721 100644 --- a/R/pkg/DESCRIPTION +++ b/R/pkg/DESCRIPTION @@ -29,6 +29,7 @@ Collate: 'client.R' 'context.R' 'deserialize.R' + 'functions.R' 'mllib.R' 'serialize.R' 'sparkR.R' |