From aa9c4898a8aca8e308aab2033325d56b311550ff Mon Sep 17 00:00:00 2001 From: Gabrielle Carvalho <77730866+gabrielle-carv@users.noreply.github.com> Date: Mon, 24 Jul 2023 15:18:42 -0300 Subject: [PATCH] date --- models/br_mercadolivre_ofertas/vendedor.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/br_mercadolivre_ofertas/vendedor.sql b/models/br_mercadolivre_ofertas/vendedor.sql index e96ab163..a4ccf5a7 100644 --- a/models/br_mercadolivre_ofertas/vendedor.sql +++ b/models/br_mercadolivre_ofertas/vendedor.sql @@ -30,7 +30,7 @@ WITH main AS ( from `basedosdados-staging.br_mercadolivre_ofertas_staging.vendedor` ), tabela_ordenada AS ( SELECT - dia AS data_consulta, + PARSE_DATE('%Y-%m-%d', dia) AS data_consulta, id_municipio, main.id_vendedor, nome AS vendedor,