Skip to content

Commit

Permalink
Support custom spark.sql.catalogImplementation
Browse files Browse the repository at this point in the history
  • Loading branch information
msafonov committed Oct 11, 2024
1 parent b38128b commit 13d763b
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1289,11 +1289,10 @@ object SparkSession extends Logging {
"org.apache.spark.sql.hive.HiveSessionStateBuilder"

private def sessionStateClassName(conf: SparkConf): String = {
log.warn("!THIS IS CORRECT PACKAGE!")
conf.get(CATALOG_IMPLEMENTATION) match {
case "hive" => HIVE_SESSION_STATE_BUILDER_CLASS_NAME
case "in-memory" => classOf[SessionStateBuilder].getCanonicalName
case _ => conf.get(CATALOG_IMPLEMENTATION)
case _ => HIVE_SESSION_STATE_BUILDER_CLASS_NAME
}
}

Expand Down

0 comments on commit 13d763b

Please sign in to comment.