Github user felixcheung commented on a diff in the pull request:
https://github.com/apache/spark/pull/16907#discussion_r102896255
--- Diff: sql/core/src/main/scala/org/apache/spark/sql/api/r/SQLUtils.scala
---
@@ -48,13 +48,14 @@ private[sql] object SQLUtils extends Logging {
sparkConfigMap: JMap[Object, Object],
enableHiveSupport: Boolean): SparkSession = {
val spark = if (SparkSession.hiveClassesArePresent && enableHiveSupport
- && jsc.sc.conf.get(CATALOG_IMPLEMENTATION.key, "hive") == "hive") {
+ && jsc.sc.conf.get(CATALOG_IMPLEMENTATION.key, "hive").toLowerCase
== "hive") {
SparkSession.builder().sparkContext(withHiveExternalCatalog(jsc.sc)).getOrCreate()
} else {
if (enableHiveSupport
- && jsc.sc.conf.get(CATALOG_IMPLEMENTATION.key, "hive") == "hive") {
+ && jsc.sc.conf.get(CATALOG_IMPLEMENTATION.key, "hive").toLowerCase
== "hive") {
logWarning("SparkR: enableHiveSupport is requested for
SparkSession but " +
- "Spark is not built with Hive; falling back to without Hive
support.")
+ s"Spark is not built with Hive or Hive is disabled via
${CATALOG_IMPLEMENTATION.key} " +
--- End diff --
test failed?
https://github.com/apache/spark/pull/16907#issuecomment-279913201
---
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]