spark-instrumented-optimizer/R/pkg
HyukjinKwon b5bdbf2ebc [SPARK-30682][R][SQL][FOLLOW-UP] Keep the name similar with Scala side in higher order functions
### What changes were proposed in this pull request?

This PR is a followup of #27433. It fixes the naming to match with Scala side, and this is similar with https://github.com/apache/spark/pull/31062.

Note that:

- there are a bit of inconsistency already e.g.) `x`, `y` in SparkR and they are documented together for doc deduplication. This part I did not change but the name `zero` vs `initialValue` looks unnecessary.
- such naming matching seems already pretty common in SparkR.

### Why are the changes needed?

To make the usage similar with Scala side, and for consistency.

### Does this PR introduce _any_ user-facing change?

No, this is not released yet.

### How was this patch tested?

GitHub Actions and Jenkins build will test it out.

Also, I manually tested:

```r
> df <- select(createDataFrame(data.frame(id = 1)),expr("CAST(array(1.0, 2.0, -3.0, -4.0) AS array<double>) xs"))
> collect(select(df, array_aggregate("xs", initialValue = lit(0.0), merge = function(x, y) otherwise(when(x > y, x), y))))
  aggregate(xs, 0.0, lambdafunction(CASE WHEN (x > y) THEN x ELSE y END, x, y), lambdafunction(id, id))
1                                                                                                     2
```

Closes #31226 from HyukjinKwon/SPARK-30682.

Authored-by: HyukjinKwon <gurwls223@apache.org>
Signed-off-by: HyukjinKwon <gurwls223@apache.org>
2021-01-18 14:19:14 +09:00
..
inst [SPARK-34015][R] Fixing input timing in gapply 2021-01-06 11:40:02 +09:00
R [SPARK-30682][R][SQL][FOLLOW-UP] Keep the name similar with Scala side in higher order functions 2021-01-18 14:19:14 +09:00
src-native [SPARK-6811] Copy SparkR lib in make-distribution.sh 2015-05-23 00:04:01 -07:00
tests [SPARK-26199][SPARK-31517][R] Fix strategy for handling ... names in mutate 2020-12-17 17:20:45 +09:00
vignettes [SPARK-34021][R] Fix hyper links in SparkR documentation for CRAN submission 2021-01-07 13:58:13 +09:00
.lintr [SPARK-29936][R] Fix SparkR lint errors and add lint-r GitHub Action 2019-11-17 21:01:01 -08:00
.Rbuildignore [SPARK-20877][SPARKR][FOLLOWUP] clean up after test move 2017-06-11 03:00:44 -07:00
DESCRIPTION [SPARK-34132][DOCS][R] Update Roxygen version references to 7.1.1 2021-01-15 17:08:17 -08:00
NAMESPACE [SPARK-33622][R][ML] Add array_to_vector to SparkR 2020-12-01 10:44:14 -08:00