Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
0.13.0
-
None
-
None
Description
Feature request to add support for determining in HQL session which user I am currently connected as - an old MySQL ability:
mysql> select user(), current_user(); +----------------+----------------+ | user() | current_user() | +----------------+----------------+ | root@localhost | root@localhost | +----------------+----------------+ 1 row in set (0.00 sec)
which doesn't seem to have a counterpart in Hive at this time:
0: jdbc:hive2://<host>:100> select user(); Error: Error while compiling statement: FAILED: SemanticException Line 0:-1 Invalid function 'user' (state=42000,code=40000) 0: jdbc:hive2://<host>:100> select current_user(); Error: Error while compiling statement: FAILED: SemanticException [Error 10011]: Line 1:7 Invalid function 'current_user' (state=42000,code=10011)
Regards,
Hari Sekhon
http://www.linkedin.com/in/harisekhon
Attachments
Attachments
Issue Links
- relates to
-
HIVE-14100 Adding a new logged_in_user() UDF which returns the user provided when connecting
- Resolved
-
HIVE-13085 Need an API / configuration parameter to find out the authenticated user from beeline
- Resolved
- links to