On this page

    Categories: System

    USER

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

    Syntax

    USER() → varchar

    Examples

    SELECT USER()
    -- testuser@dremio.com
    
    SELECT USER
    -- testuser@dremio.com
    

    Usage Notes

    This function can be called without the parentheses.