Skip to content

Commit

Permalink
revoke
Browse files Browse the repository at this point in the history
  • Loading branch information
bcmeireles committed Jan 3, 2025
1 parent 7ae52d1 commit 9a5b7b9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions dbt/include/dremio/macros/adapters/apply_grants.sql
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,11 @@ limitations under the License.*/
to {{ type }} {{ adapter.quote(name) }}
{%- endmacro -%}

{%- macro default__get_revoke_sql(relation, privilege, grantees) -%}
revoke {{ privilege }} on {{ relation.type }} {{ relation }} from user {{adapter.quote(grantees[0])}}
{%- macro dremio__get_revoke_sql(relation, privilege, grantees) -%}
{%- set type, name = dremio__split_grantee(grantees[0]) %}

revoke {{ privilege }} on {{ relation.type }} {{ relation }}
from {{ type }} {{ adapter.quote(name) }}
{%- endmacro -%}

{% macro dremio__call_dcl_statements(dcl_statement_list) %}
Expand Down

0 comments on commit 9a5b7b9

Please sign in to comment.