Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions R/pkg/inst/tests/testthat/test_sparkSQL.R
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down