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

    https://github.com/apache/spark/pull/18668#discussion_r131322795
  
    --- Diff: 
sql/hive-thriftserver/src/main/scala/org/apache/spark/sql/hive/thriftserver/SparkSQLCLIDriver.scala
 ---
    @@ -134,6 +135,16 @@ private[hive] object SparkSQLCLIDriver extends Logging 
{
           // Hive 1.2 + not supported in CLI
           throw new RuntimeException("Remote operations not supported")
         }
    +    // Respect the configurations set by --hiveconf from the command line
    +    // (based on Hive's CliDriver).
    +    val hiveConfFromCmd = 
sessionState.getOverriddenConfigurations.entrySet().asScala
    +    val newHiveConf = hiveConfFromCmd.map { kv =>
    +      // If the same property is configured by spark.hadoop.xxx, we ignore 
it and
    +      // obey settings from spark properties
    +      val k = kv.getKey
    +      val v = sys.props.getOrElseUpdate(SPARK_HADOOP_PROP_PREFIX + k, 
kv.getValue)
    --- End diff --
    
    `newClientForExecution ` is used for us to read/write hive serde tables. 
This is the major concern I have. Let us add another parameter in 
`newTemporaryConfiguration `. When `newClientForExecution `  is calling 
`newTemporaryConfiguration `, we should not get the hive conf from sys.prop. 


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