From 8cbbe08a0d49bd82986e6a06f9dd81481d1fd3a9 Mon Sep 17 00:00:00 2001 From: Gabrielle Carvalho <77730866+gabrielle-carv@users.noreply.github.com> Date: Fri, 22 Sep 2023 09:33:33 -0300 Subject: [PATCH] test --- .../mundo_transfermarkt_competicoes__brasileirao_serie_a.sql | 1 - .../mundo_transfermarkt_competicoes__copa_brasil.sql | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/models/mundo_transfermarkt_competicoes/mundo_transfermarkt_competicoes__brasileirao_serie_a.sql b/models/mundo_transfermarkt_competicoes/mundo_transfermarkt_competicoes__brasileirao_serie_a.sql index b866640e..6f9a6617 100644 --- a/models/mundo_transfermarkt_competicoes/mundo_transfermarkt_competicoes__brasileirao_serie_a.sql +++ b/models/mundo_transfermarkt_competicoes/mundo_transfermarkt_competicoes__brasileirao_serie_a.sql @@ -22,7 +22,6 @@ FILTER USING (DATE_DIFF(DATE("{{ run_started_at.strftime("%Y-%m-%d") }}"), DATE(data), week) <= 6)' ] ) }} - SELECT SAFE_CAST(REPLACE (ano_campeonato,".0","") AS INT64) ano_campeonato, SAFE_CAST(data AS DATE) data, diff --git a/models/mundo_transfermarkt_competicoes/mundo_transfermarkt_competicoes__copa_brasil.sql b/models/mundo_transfermarkt_competicoes/mundo_transfermarkt_competicoes__copa_brasil.sql index 82367baa..fb283c07 100644 --- a/models/mundo_transfermarkt_competicoes/mundo_transfermarkt_competicoes__copa_brasil.sql +++ b/models/mundo_transfermarkt_competicoes/mundo_transfermarkt_competicoes__copa_brasil.sql @@ -19,7 +19,7 @@ 'CREATE OR REPLACE ROW ACCESS POLICY bdpro_filter ON {{this}} GRANT TO ("group:bd-pro@basedosdados.org", "group:sudo@basedosdados.org") - FILTER USING (DATE_DIFF(DATE("{{ run_started_at.strftime("%Y-%m-%d") }}"), DATE(data), MONTH) <= 6)' ] + FILTER USING (DATE_DIFF(DATE("{{ run_started_at.strftime("%Y-%m-%d") }}"), DATE(data), MONTH) <= 6)' ], ) }} SELECT