-
Type:
Bug
-
Status: Resolved
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 2.3.0
-
Component/s: Authentication, Beeline
-
Labels:None
There is an existing current_user() UDF which returns the user provided by the configured hive.security.authenticator.manager. This is often the same as the user provided on connection, but some cases, like HadoopDefaultAuthenticator this could be different.
Some cases we need the logged in user independently of the configured authenticator, so a new UDF is created which provides this - returns the SessionState.get().getUserName().
- is related to
-
HIVE-9143 select user(), current_user()
-
- Closed
-