Code sql

Hive - Retrieve Current User

Kontext Kontext visibility 209 comment 0 access_time 2 years ago language English

descriptionCode 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  |
+----------+
fork_rightFork
more_vert
copyright This page is subject to Site terms.
comment Comments
No comments yet.

Please log in or register to comment.

account_circle Log in person_add Register

Log in with external accounts