Categories: Context

SESSION_USER

Returns the username of the user that created the current session.

Syntax

SESSION_USER() → varchar

Examples

SELECT SESSION_USER
-- testuser@dremio.com

Usage Notes

This function must be called without parentheses.