Skip to content

Commit

Permalink
Merge pull request #305 from basedosdados/mundo_transfermarkt_competi…
Browse files Browse the repository at this point in the history
…coes

[dbt] mundo_transfermarkt_competicoes
  • Loading branch information
gabrielle-carv authored Sep 21, 2023
2 parents 95daa15 + 41e3df1 commit 92fa2d1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
post_hook = ['CREATE OR REPLACE ROW ACCESS POLICY allusers_filter
ON {{this}}
GRANT TO ("allUsers")
FILTER USING (DATE_DIFF(DATE("{{ run_started_at.strftime("%Y-%m-%d") }}"), DATE(data), YEAR) > 1)',
FILTER USING (DATE_DIFF(DATE("{{ run_started_at.strftime("%Y-%m-%d") }}"), DATE(data), MONTH) > 6)',
'CREATE OR REPLACE ROW ACCESS POLICY bdpro_filter
ON {{this}}
GRANT TO ("group:[email protected]", "group:[email protected]")
FILTER USING (DATE_DIFF(DATE("{{ run_started_at.strftime("%Y-%m-%d") }}"), DATE(data), YEAR) <= 1)' ]
FILTER USING (DATE_DIFF(DATE("{{ run_started_at.strftime("%Y-%m-%d") }}"), DATE(data), MONTH) <= 6)' ]
)
}}

Expand Down

0 comments on commit 92fa2d1

Please sign in to comment.