IS_ROLE_IN_SESSION (Lakehouse v2)
Checks whether a specified role is active in the current session.
Analyze Syntax
Section titled “Analyze Syntax”func.is_role_in_session(<role_name>)Analyze Examples
Section titled “Analyze Examples”func.is_role_in_session('admin')
┌──────┐│ True │└──────┘SQL Syntax
Section titled “SQL Syntax”IS_ROLE_IN_SESSION(<role_name>)SQL Examples
Section titled “SQL Examples”SELECT IS_ROLE_IN_SESSION('admin');
┌───┐│ 1 │└───┘