Skip to content

Commit

Permalink
[dbt] br_cnj_improbidade_administrativa (#473)
Browse files Browse the repository at this point in the history
* add hook
  • Loading branch information
aspeddro authored Feb 29, 2024
1 parent 2087721 commit 0aa166f
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,14 @@
schema="br_cnj_improbidade_administrativa",
alias="condenacao",
materialized="table",
post_hook=[
'CREATE OR REPLACE ROW ACCESS POLICY allusers_filter ON {{this}} GRANT TO ("allUsers") FILTER USING (DATE_DIFF(CURRENT_DATE(), data_propositura, MONTH) > 6)',
'CREATE OR REPLACE ROW ACCESS POLICY bdpro_filter ON {{this}} GRANT TO ("group:[email protected]", "group:[email protected]") FILTER USING (True)',
],
)
}}


select
safe_cast(nome as string) nome,
safe_cast(num_processo as string) numero_processo,
Expand Down

0 comments on commit 0aa166f

Please sign in to comment.