-
- Downloads
[SPARK-10075] [SPARKR] Add `when` expressino function in SparkR
- Add `when` and `otherwise` as `Column` methods - Add `When` as an expression function - Add `%otherwise%` infix as an alias of `otherwise` Since R doesn't support a feature like method chaining, `otherwise(when(condition, value), value)` style is a little annoying for me. If `%otherwise%` looks strange for shivaram, I can remove it. What do you think? ### JIRA [[SPARK-10075] Add `when` expressino function in SparkR - ASF JIRA](https://issues.apache.org/jira/browse/SPARK-10075) Author: Yu ISHIKAWA <yuu.ishikawa@gmail.com> Closes #8266 from yu-iskw/SPARK-10075.
Showing
- R/pkg/NAMESPACE 2 additions, 0 deletionsR/pkg/NAMESPACE
- R/pkg/R/column.R 14 additions, 0 deletionsR/pkg/R/column.R
- R/pkg/R/functions.R 14 additions, 0 deletionsR/pkg/R/functions.R
- R/pkg/R/generics.R 8 additions, 0 deletionsR/pkg/R/generics.R
- R/pkg/inst/tests/test_sparkSQL.R 7 additions, 0 deletionsR/pkg/inst/tests/test_sparkSQL.R
Please register or sign in to comment