On this page

    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

    QUERY_USER example
    SELECT QUERY_USER()
    -- testuser@dremio.com