Apache Hive : HPL/SQL - USER Function

Last updated: August 12, 2026

Apache Hive : HPL/SQL - USER Function

USER function returns the name of the user executing the current HPL/SQL script.

Syntax:

USER

Return Type:

STRING

Example:

Get the current user:

USER
--
paul

Compatibility: Oracle, IBM DB2 and Teradata.

See also: