srowen commented on a change in pull request #23788: [SPARK-27176][SQL] Upgrade 
hadoop-3's built-in Hive maven dependencies to 2.3.4
URL: https://github.com/apache/spark/pull/23788#discussion_r271063379
 
 

 ##########
 File path: sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveUtils.scala
 ##########
 @@ -54,8 +55,11 @@ private[spark] object HiveUtils extends Logging {
     sc
   }
 
+  private val supportedHive2ShortVersions = Set("2.3.0")
+  val isSupportedHive2 = 
supportedHive2ShortVersions.contains(HiveVersionInfo.getShortVersion)
+
   /** The version of hive used internally by Spark SQL. */
-  val builtinHiveVersion: String = "1.2.1"
+  val builtinHiveVersion: String = if (isSupportedHive2) 
HiveVersionInfo.getVersion else "1.2.1"
 
 Review comment:
   Yeah, I guess don't do it here, but I feel like it's inevitable we have to 
remove this fork. It doesn't mean it can't interoperate with Hive metastores in 
older versions, right?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to