Github user gatorsmile commented on a diff in the pull request:

    https://github.com/apache/spark/pull/18769#discussion_r131535007
  
    --- Diff: 
sql/core/src/main/scala/org/apache/spark/sql/execution/command/SetCommand.scala 
---
    @@ -87,6 +88,13 @@ case class SetCommand(kv: Option[(String, 
Option[String])]) extends RunnableComm
         // Configures a single property.
         case Some((key, Some(value))) =>
           val runFunc = (sparkSession: SparkSession) => {
    +        if 
(sparkSession.conf.get(CATALOG_IMPLEMENTATION.key).equals("hive")
    +          && key.startsWith("hive.")) {
    +          logWarning(s"SET $key=$value doesn't work, " +
    +            s"because Spark doesn't support set hive config dynamically. " 
+
    +            s"Please set hive config through " +
    +            s"--conf spark.hadoop.$key=$value before SparkSession is 
initialized.")
    --- End diff --
    
    How about?
    
    > 'SET $key=$value' might not work, since Spark doesn't support changing 
the Hive config dynamically. Please passing the Hive-specific config by adding 
the prefix `spark.hadoop` (e.g.,`spark.hadoop.$key`) when starting a Spark 
application. For details, see the link: 
https://spark.apache.org/docs/latest/configuration.html#dynamically-loading-spark-properties.


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

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

Reply via email to