Skip to content
Closed
Changes from 1 commit
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
Prev Previous commit
remove hive support from unit test
  • Loading branch information
bdwyer2 committed Dec 13, 2016
commit 9142397b39ff5886cf51a4255591251241d103b8
9 changes: 7 additions & 2 deletions R/pkg/inst/tests/testthat/test_sparkR.R
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,13 @@ test_that("sparkCheckInstall", {
test_that("sparkR.session", {
# nothing should be written outside tempdir() without explicit user permission
inital_working_directory_files <- list.files()
sparkR.session()
result <- sql("SELECT 1")
sparkR.session(enableHiveSupport = FALSE)
df <- data.frame("col1" = c(1, 2, 3, 4, 5, 6),
"col2" = c(1, 0, 0, 1, 1, 0),
"col3" = c(1, 0, 0, 2, 6, 2))
df <- as.DataFrame(df)
createOrReplaceTempView(df, "table")
result <- sql("SELECT * FROM `table`")
sparkR.session.stop()
expect_equal(inital_working_directory_files, list.files())
})