Github user gatorsmile commented on a diff in the pull request:
https://github.com/apache/spark/pull/17405#discussion_r107841074
--- Diff:
sql/hive/src/main/scala/org/apache/spark/sql/hive/client/HiveClientImpl.scala
---
@@ -207,6 +207,8 @@ private[hive] class HiveClientImpl(
/** Returns the configuration for the current session. */
def conf: HiveConf = state.getConf
+ private val userName = state.getAuthenticator.getUserName
--- End diff --
All the `SparkSession`s share the same internal Hive `SessionState`. After
we create it, it will be set, if my understanding is not wrong, no matter which
`HiveAuthenticationProvider` that users choose.
Previously, before merging the PR
https://github.com/apache/spark/pull/17311, do we have the same issue?
cc @vanzin @dongjoon-hyun @yhuai
---
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]