Skip to content

Commit

Permalink
Merge pull request #477 from basedosdados/fix-br_mp_pep_cargos_funcoes
Browse files Browse the repository at this point in the history
[dbt]: br_mp_pep_cargos_funcoes add dbt alias
  • Loading branch information
aspeddro authored Mar 4, 2024
2 parents ba94a48 + 58475cd commit c8c061f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
config(
schema="br_mp_pep",
materialized="table",
alias="cargos_funcoes",
partition_by={
"field": "ano",
"data_type": "int64",
Expand All @@ -10,7 +11,7 @@
cluster_by="mes",
post_hook=[
'CREATE OR REPLACE ROW ACCESS POLICY allusers_filter ON {{this}} GRANT TO ("allUsers") FILTER USING (DATE_DIFF(CURRENT_DATE(),DATE(CAST(ano AS INT64),CAST(mes AS INT64),1), MONTH) > 6)',
'CREATE OR REPLACE ROW ACCESS POLICY bdpro_filter ON {{this}} GRANT TO ("group:[email protected]", "group:[email protected]") FILTER USING (DATE_DIFF(CURRENT_DATE(),DATE(CAST(ano AS INT64),CAST(mes AS INT64),1), MONTH) <= 6)',
'CREATE OR REPLACE ROW ACCESS POLICY bdpro_filter ON {{this}} GRANT TO ("group:[email protected]", "group:[email protected]") FILTER USING (True)',
],
)
}}
Expand Down
2 changes: 1 addition & 1 deletion models/br_mp_pep/schema.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
version: 2
models:
- name: cargos_funcoes
- name: br_mp_pep__cargos_funcoes
description: "Informações sobre o quantitativo de cargos e funções com características\
\ de direção e assessoramento no Poder Executivo Federal Civil e Funções e Gratificações\
\ com características técnicas. Essa tabela contém todas as dimensões e apenas\
Expand Down

0 comments on commit c8c061f

Please sign in to comment.