kevincmchen commented on a change in pull request #33746:
URL: https://github.com/apache/spark/pull/33746#discussion_r689373891



##########
File path: 
sql/hive/src/main/scala/org/apache/spark/sql/hive/client/HiveClientImpl.scala
##########
@@ -265,6 +265,10 @@ private[hive] class HiveClientImpl(
       clientLoader.cachedHive.asInstanceOf[Hive]
     } else {
       val c = getHive(conf)
+      val metaConfPrefix = 
SQLConf.get.getConf(HiveUtils.HIVE_METASTORE_METACONF_PREFIX)
+      conf.getAllProperties.asScala
+        .filterKeys(_.startsWith(metaConfPrefix))
+        .foreach{ case(key, value) => 
c.setMetaConf(key.substring(metaConfPrefix.length), value)}

Review comment:
       in our case,  we pass tenant info to an external multi-tenant metasotre 
by utilizing the meta conf, such as tenant name, auth info etc.




-- 
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.

To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to