Categories: Boolean
IS_MEMBER
Returns TRUE if the current user is a member of the specified role and FALSE otherwise. Role names are case-insensitive. When this function is used in a Reflection, it can be pulled out at the time of materialization and re-applied at query time.
Syntax
IS_MEMBER(expression varchar) → boolean
- expression: String expression identifying a role in Dremio. Use the Roles system table to list available roles. The function does not accept
NULLinput.
Examples
IS_MEMBER exampleSELECT IS_MEMBER ('public')
-- True
SELECT IS_MEMBER ('non-role')
-- False