Github user shivaram commented on a diff in the pull request:
https://github.com/apache/spark/pull/9192#discussion_r64633530
--- Diff: R/pkg/inst/tests/testthat/test_sparkSQL.R ---
@@ -169,48 +169,50 @@ test_that("create DataFrame from RDD", {
error = function(err) {
skip("Hive is not build with SparkSQL, skipped")
})
- sql(hiveCtx, "CREATE TABLE people (name string, age double, height
float)")
- df <- read.df(hiveCtx, jsonPathNa, "json", schema)
+ assign(".sparkRHivesc", hiveCtx, envir = .sparkREnv)
--- End diff --
minor nit: we should add a new method to create the test hive context that
also does this assignment. seems like something that other test cases might
forget to do
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]