diff options
author | Felix Cheung <felixcheung_m@hotmail.com> | 2016-07-15 13:58:57 -0700 |
---|---|---|
committer | Shivaram Venkataraman <shivaram@cs.berkeley.edu> | 2016-07-15 13:58:57 -0700 |
commit | 611a8ca5895357059f1e7c035d946e0718b26a5a (patch) | |
tree | 2deedaf740985037531debe3757ca431dc3e3873 /R/pkg/inst/tests/testthat/test_sparkSQL.R | |
parent | 5ffd5d3838da40ad408a6f40071fe6f4dcacf2a1 (diff) | |
download | spark-611a8ca5895357059f1e7c035d946e0718b26a5a.tar.gz spark-611a8ca5895357059f1e7c035d946e0718b26a5a.tar.bz2 spark-611a8ca5895357059f1e7c035d946e0718b26a5a.zip |
[SPARK-16538][SPARKR] Add more tests for namespace call to SparkSession functions
## What changes were proposed in this pull request?
More tests
I don't think this is critical for Spark 2.0.0 RC, maybe Spark 2.0.1 or 2.1.0.
## How was this patch tested?
unit tests
shivaram dongjoon-hyun
Author: Felix Cheung <felixcheung_m@hotmail.com>
Closes #14206 from felixcheung/rroutetests.
Diffstat (limited to 'R/pkg/inst/tests/testthat/test_sparkSQL.R')
-rw-r--r-- | R/pkg/inst/tests/testthat/test_sparkSQL.R | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/R/pkg/inst/tests/testthat/test_sparkSQL.R b/R/pkg/inst/tests/testthat/test_sparkSQL.R index a1b1f1c567..f275284b09 100644 --- a/R/pkg/inst/tests/testthat/test_sparkSQL.R +++ b/R/pkg/inst/tests/testthat/test_sparkSQL.R @@ -2424,6 +2424,13 @@ test_that("createDataFrame sqlContext parameter backward compatibility", { before <- suppressWarnings(createDataFrame(sqlContext, iris)) after <- suppressWarnings(createDataFrame(iris)) expect_equal(collect(before), collect(after)) + + # more tests for SPARK-16538 + createOrReplaceTempView(df, "table") + SparkR::tables() + SparkR::sql("SELECT 1") + suppressWarnings(SparkR::sql(sqlContext, "SELECT * FROM table")) + suppressWarnings(SparkR::dropTempTable(sqlContext, "table")) }) test_that("randomSplit", { |