[SPARK-20661][SPARKR][TEST] SparkR tableNames() test fails
## What changes were proposed in this pull request? Cleaning existing temp tables before running tableNames tests ## How was this patch tested? SparkR Unit tests Author: Hossein <hossein@databricks.com> Closes #17903 from falaki/SPARK-20661.
This commit is contained in:
parent
829cd7b8b7
commit
2abfee18b6
|
@ -677,6 +677,8 @@ test_that("jsonRDD() on a RDD with json string", {
|
|||
})
|
||||
|
||||
test_that("test tableNames and tables", {
|
||||
# Making sure there are no registered temp tables from previous tests
|
||||
suppressWarnings(sapply(tableNames(), function(tname) { dropTempTable(tname) }))
|
||||
df <- read.json(jsonPath)
|
||||
createOrReplaceTempView(df, "table1")
|
||||
expect_equal(length(tableNames()), 1)
|
||||
|
|
Loading…
Reference in a new issue