We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98e7ab9 commit 640ffcaCopy full SHA for 640ffca
R/pkg/inst/tests/testthat/test_sparkSQL.R
@@ -33,6 +33,7 @@ markUtf8 <- function(s) {
33
}
34
35
setHiveContext <- function() {
36
+ ssc <- callJMethod(sc, "sc")
37
hiveCtx <- tryCatch({
38
newJObject("org.apache.spark.sql.hive.test.TestHiveContext", ssc)
39
},
@@ -177,7 +178,6 @@ test_that("create DataFrame from RDD", {
177
178
expect_equal(as.list(collect(where(df, df$name == "John"))),
179
list(name = "John", age = 19L, height = 176.5))
180
- ssc <- callJMethod(sc, "sc")
181
setHiveContext()
182
sql("CREATE TABLE people (name string, age double, height float)")
183
df <- read.df(jsonPathNa, "json", schema)
0 commit comments