aboutsummaryrefslogtreecommitdiff
path: root/R/pkg/inst
diff options
context:
space:
mode:
authorFelix Cheung <felixcheung_m@hotmail.com>2016-06-23 09:45:01 -0700
committerShivaram Venkataraman <shivaram@cs.berkeley.edu>2016-06-23 09:45:01 -0700
commitb5a997667f4c0e514217da6df5af37b8b849dfdf (patch)
tree7f9e4528fd4774965b4766129170c1d539f99423 /R/pkg/inst
parent65d1f0f716f50dd14b5dfe1e7fac772f1b4d2be0 (diff)
downloadspark-b5a997667f4c0e514217da6df5af37b8b849dfdf.tar.gz
spark-b5a997667f4c0e514217da6df5af37b8b849dfdf.tar.bz2
spark-b5a997667f4c0e514217da6df5af37b8b849dfdf.zip
[SPARK-16088][SPARKR] update setJobGroup, cancelJobGroup, clearJobGroup
## What changes were proposed in this pull request? Updated setJobGroup, cancelJobGroup, clearJobGroup to not require sc/SparkContext as parameter. Also updated roxygen2 doc and R programming guide on deprecations. ## How was this patch tested? unit tests Author: Felix Cheung <felixcheung_m@hotmail.com> Closes #13838 from felixcheung/rjobgroup.
Diffstat (limited to 'R/pkg/inst')
-rw-r--r--R/pkg/inst/tests/testthat/test_context.R10
1 files changed, 7 insertions, 3 deletions
diff --git a/R/pkg/inst/tests/testthat/test_context.R b/R/pkg/inst/tests/testthat/test_context.R
index 3d232df566..2a1bd61b11 100644
--- a/R/pkg/inst/tests/testthat/test_context.R
+++ b/R/pkg/inst/tests/testthat/test_context.R
@@ -100,9 +100,13 @@ test_that("rdd GC across sparkR.stop", {
test_that("job group functions can be called", {
sc <- sparkR.sparkContext()
- setJobGroup(sc, "groupId", "job description", TRUE)
- cancelJobGroup(sc, "groupId")
- clearJobGroup(sc)
+ setJobGroup("groupId", "job description", TRUE)
+ cancelJobGroup("groupId")
+ clearJobGroup()
+
+ suppressWarnings(setJobGroup(sc, "groupId", "job description", TRUE))
+ suppressWarnings(cancelJobGroup(sc, "groupId"))
+ suppressWarnings(clearJobGroup(sc))
sparkR.session.stop()
})