aboutsummaryrefslogtreecommitdiff
path: root/R/pkg/inst/tests
diff options
context:
space:
mode:
authorSun Rui <rui.sun@intel.com>2015-10-26 20:58:18 -0700
committerShivaram Venkataraman <shivaram@cs.berkeley.edu>2015-10-26 20:58:18 -0700
commitdc3220ce11c7513b1452c82ee82cb86e908bcc2d (patch)
treebfdf594afdf3731919cccd131363973c50df98cd /R/pkg/inst/tests
parent82464fb2e02ca4e4d425017815090497b79dc93f (diff)
downloadspark-dc3220ce11c7513b1452c82ee82cb86e908bcc2d.tar.gz
spark-dc3220ce11c7513b1452c82ee82cb86e908bcc2d.tar.bz2
spark-dc3220ce11c7513b1452c82ee82cb86e908bcc2d.zip
[SPARK-11209][SPARKR] Add window functions into SparkR [step 1].
Author: Sun Rui <rui.sun@intel.com> Closes #9193 from sun-rui/SPARK-11209.
Diffstat (limited to 'R/pkg/inst/tests')
-rw-r--r--R/pkg/inst/tests/test_sparkSQL.R2
1 files changed, 2 insertions, 0 deletions
diff --git a/R/pkg/inst/tests/test_sparkSQL.R b/R/pkg/inst/tests/test_sparkSQL.R
index 540854d114..e1d4499925 100644
--- a/R/pkg/inst/tests/test_sparkSQL.R
+++ b/R/pkg/inst/tests/test_sparkSQL.R
@@ -829,6 +829,8 @@ test_that("column functions", {
c9 <- signum(c) + sin(c) + sinh(c) + size(c) + soundex(c) + sqrt(c) + sum(c)
c10 <- sumDistinct(c) + tan(c) + tanh(c) + toDegrees(c) + toRadians(c)
c11 <- to_date(c) + trim(c) + unbase64(c) + unhex(c) + upper(c)
+ c12 <- lead("col", 1) + lead(c, 1) + lag("col", 1) + lag(c, 1)
+ c13 <- cumeDist() + ntile(1)
df <- jsonFile(sqlContext, jsonPath)
df2 <- select(df, between(df$age, c(20, 30)), between(df$age, c(10, 20)))