Skip to main content

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 NULL input.

Examples

IS_MEMBER example
SELECT IS_MEMBER ('public')
-- True
IS_MEMBER example
SELECT IS_MEMBER ('non-role')
-- False