CURRENT_ROLE (Lakehouse v2)
Returns the current active role.
Analyze Syntax
Section titled “Analyze Syntax”func.current_role()Analyze Examples
Section titled “Analyze Examples”func.current_role()
┌─────────┐│ 'admin' │└─────────┘SQL Syntax
Section titled “SQL Syntax”CURRENT_ROLE()SQL Examples
Section titled “SQL Examples”SELECT CURRENT_ROLE();
┌───────┐│ admin │└───────┘