Kontext Kontext / Code Snippets & Tips

Hive - Retrieve Current User

event 2022-08-20 visibility 430 comment 0 insights
insights Stats

Code description

This code snippet provides example of retrieving current user via current_user() function in HQL (Hive QL) code.


0: jdbc:hive2://> select current_user();
|   _c0    |
| kontext  |

Code snippet

select current_user();
More from Kontext
comment Comments
No comments yet.

Please log in or register to comment.

account_circle Log in person_add Register

Log in with external accounts