aboutsummaryrefslogtreecommitdiff
path: root/R/pkg/inst/tests
diff options
context:
space:
mode:
Diffstat (limited to 'R/pkg/inst/tests')
-rw-r--r--R/pkg/inst/tests/testthat/test_sparkSQL.R7
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", {