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

    https://github.com/apache/spark/pull/18668#discussion_r131320143
  
    --- Diff: 
sql/hive-thriftserver/src/main/scala/org/apache/spark/sql/hive/thriftserver/SparkSQLCLIDriver.scala
 ---
    @@ -157,12 +168,8 @@ private[hive] object SparkSQLCLIDriver extends Logging 
{
         // Execute -i init files (always in silent mode)
         cli.processInitFiles(sessionState)
     
    -    // Respect the configurations set by --hiveconf from the command line
    -    // (based on Hive's CliDriver).
    -    val it = sessionState.getOverriddenConfigurations.entrySet().iterator()
    -    while (it.hasNext) {
    -      val kv = it.next()
    -      SparkSQLEnv.sqlContext.setConf(kv.getKey, kv.getValue)
    +    newHiveConf.foreach{ kv =>
    --- End diff --
    
    thanks


---
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 [email protected] or file a JIRA ticket
with INFRA.
---

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

Reply via email to