Skip to content

Commit e833c90

Browse files
felixcheungshivaram
authored andcommitted
[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 <[email protected]> Closes #14206 from felixcheung/rroutetests. (cherry picked from commit 611a8ca) Signed-off-by: Shivaram Venkataraman <[email protected]>
1 parent 90686ab commit e833c90

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

R/pkg/inst/tests/testthat/test_sparkSQL.R

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2416,6 +2416,13 @@ test_that("createDataFrame sqlContext parameter backward compatibility", {
24162416
before <- suppressWarnings(createDataFrame(sqlContext, iris))
24172417
after <- suppressWarnings(createDataFrame(iris))
24182418
expect_equal(collect(before), collect(after))
2419+
2420+
# more tests for SPARK-16538
2421+
createOrReplaceTempView(df, "table")
2422+
SparkR::tables()
2423+
SparkR::sql("SELECT 1")
2424+
suppressWarnings(SparkR::sql(sqlContext, "SELECT * FROM table"))
2425+
suppressWarnings(SparkR::dropTempTable(sqlContext, "table"))
24192426
})
24202427

24212428
test_that("randomSplit", {

0 commit comments

Comments
 (0)