sririshindra commented on code in PR #49814: URL: https://github.com/apache/spark/pull/49814#discussion_r1951038298
########## sql/hive/src/main/scala/org/apache/spark/sql/hive/client/HiveClientImpl.scala: ########## @@ -171,6 +172,11 @@ private[hive] class HiveClientImpl( private def newState(): SessionState = { val hiveConf = newHiveConf(sparkConf, hadoopConf, extraConfig, Some(initClassLoader)) val state = new SessionState(hiveConf) + // When SessionState is initialized, the caller context is overridden by hive + // so we need to reset it back to the DRIVER Review Comment: Got it. I am working on testing on OSS Spark and hive. I tried working with the Hive docker image, but I had trouble configuring the HDFS audit logs in that Image. I also tried the https://github.com/awesome-kyuubi/hadoop-testing project. There I am having trouble building the docker images. I will figure out something on how to test it and post the results here once I have something. -- 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