Hive - Retrieve Current User

Kontext Kontext 0 632 0.60 index 8/20/2022

Code description

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

Output:

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

Code snippet

    select current_user();
hive sql

Join the Discussion

View or add your thoughts below

Comments