Skip to main content
Version: 0.0.1

QUERY_USER

Categories: System

QUERY_USER

Returns the username of the user that is currently logged in to the system. This function cannot be used in a reflection.

Syntax

QUERY_USER() → varchar

Examples

{{< codeheader "QUERY_USER example" >}}

SELECT QUERY_USER()
-- testuser@dremio.com