User Tools

Site Tools


Sidebar

HPL/SQL is included to Apache Hive since version 2.0

current-user

CURRENT_USER Function - PL/HQL

CURRENT_USER function returns the name of the user executing the current PL/HQL script.

Syntax:

CURRENT_USER | CURRENT USER 

Return Type:

STRING

Example:

Get the current user:

CURRENT_USER
--
paul

Compatibility: IBM DB2, Teradata.

Version: PL/HQL 0.3.11

See also: