Repository: spark Updated Branches: refs/heads/master d601894c0 -> d17e5f2f1
[SPARK-16233][R][TEST] ORC test should be enabled only when HiveContext is available. ## What changes were proposed in this pull request? ORC test should be enabled only when HiveContext is available. ## How was this patch tested? Manual. ``` $ R/run-tests.sh ... 1. create DataFrame from RDD (test_sparkSQL.R#200) - Hive is not build with SparkSQL, skipped 2. test HiveContext (test_sparkSQL.R#1021) - Hive is not build with SparkSQL, skipped 3. read/write ORC files (test_sparkSQL.R#1728) - Hive is not build with SparkSQL, skipped 4. enableHiveSupport on SparkSession (test_sparkSQL.R#2448) - Hive is not build with SparkSQL, skipped 5. sparkJars tag in SparkContext (test_Windows.R#21) - This test is only for Windows, skipped DONE =========================================================================== Tests passed. ``` Author: Dongjoon Hyun <dongj...@apache.org> Closes #14019 from dongjoon-hyun/SPARK-16233. Project: http://git-wip-us.apache.org/repos/asf/spark/repo Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/d17e5f2f Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/d17e5f2f Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/d17e5f2f Branch: refs/heads/master Commit: d17e5f2f123eecd5a7a1d87f5ce75a0fc44552b4 Parents: d601894 Author: Dongjoon Hyun <dongj...@apache.org> Authored: Fri Jul 1 15:35:19 2016 -0700 Committer: Shivaram Venkataraman <shiva...@cs.berkeley.edu> Committed: Fri Jul 1 15:35:19 2016 -0700 ---------------------------------------------------------------------- R/pkg/inst/tests/testthat/test_sparkSQL.R | 2 ++ 1 file changed, 2 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/spark/blob/d17e5f2f/R/pkg/inst/tests/testthat/test_sparkSQL.R ---------------------------------------------------------------------- diff --git a/R/pkg/inst/tests/testthat/test_sparkSQL.R b/R/pkg/inst/tests/testthat/test_sparkSQL.R index 3b8d570..a3aa26d 100644 --- a/R/pkg/inst/tests/testthat/test_sparkSQL.R +++ b/R/pkg/inst/tests/testthat/test_sparkSQL.R @@ -1725,6 +1725,7 @@ test_that("mutate(), transform(), rename() and names()", { }) test_that("read/write ORC files", { + setHiveContext(sc) df <- read.df(jsonPath, "json") # Test write.df and read.df @@ -1741,6 +1742,7 @@ test_that("read/write ORC files", { expect_equal(count(orcDF), count(df)) unlink(orcPath2) + unsetHiveContext() }) test_that("read/write Parquet files", { --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@spark.apache.org For additional commands, e-mail: commits-h...@spark.apache.org