Github user andrewor14 commented on a diff in the pull request:
https://github.com/apache/spark/pull/13088#discussion_r65266515
--- Diff: repl/scala-2.11/src/main/scala/org/apache/spark/repl/Main.scala
---
@@ -88,12 +89,25 @@ object Main extends Logging {
}
val builder = SparkSession.builder.config(conf)
- if (SparkSession.hiveClassesArePresent) {
- sparkSession = builder.enableHiveSupport().getOrCreate()
- logInfo("Created Spark session with Hive support")
+ if (conf.get(CATALOG_IMPLEMENTATION.key, "hive").toLowerCase ==
"hive") {
+ if (SparkSession.hiveClassesArePresent) {
+ // In the case that the property is not set at all, builder's
config
+ // does not have this value set to 'hive' yet. The original default
+ // behavior is that when there are hive classes, we use hive
catalog.
+ sparkSession = builder.enableHiveSupport().getOrCreate()
+ logInfo("Created Spark session with Hive catalog")
--- End diff --
Hive catalog is something else so this message might be confusing. I would
just say with Hive support
---
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]