@@ -2172,23 +2172,23 @@ test_that("createDataFrame sqlContext parameter backward compatibility", {
21722172 a <- 1 : 3
21732173 b <- c(" a" , " b" , " c" )
21742174 ldf <- data.frame (a , b )
2175- df <- createDataFrame(sqlContext , ldf )
2175+ df <- suppressWarnings( createDataFrame(sqlContext , ldf ) )
21762176 expect_equal(columns(df ), c(" a" , " b" ))
21772177 expect_equal(dtypes(df ), list (c(" a" , " int" ), c(" b" , " string" )))
21782178 expect_equal(count(df ), 3 )
21792179 ldf2 <- collect(df )
21802180 expect_equal(ldf $ a , ldf2 $ a )
21812181
2182- df2 <- createDataFrame(sqlContext , iris )
2182+ df2 <- suppressWarnings( createDataFrame(sqlContext , iris ) )
21832183 expect_equal(count(df2 ), 150 )
21842184 expect_equal(ncol(df2 ), 5 )
21852185
2186- df3 <- read.df(sqlContext , jsonPath , " json" )
2186+ df3 <- suppressWarnings( read.df(sqlContext , jsonPath , " json" ) )
21872187 expect_is(df3 , " SparkDataFrame" )
21882188 expect_equal(count(df3 ), 3 )
21892189
2190- before <- createDataFrame(sqlContext , iris )
2191- after <- createDataFrame(iris )
2190+ before <- suppressWarnings( createDataFrame(sqlContext , iris ) )
2191+ after <- suppressWarnings( createDataFrame(iris ) )
21922192 expect_equal(collect(before ), collect(after ))
21932193})
21942194
0 commit comments