From 2e8c8cee536c1504ee47e5a17a64e2dcbda2d06c Mon Sep 17 00:00:00 2001 From: uiro-bi Date: Thu, 1 Aug 2024 10:31:34 -0300 Subject: [PATCH] fix: specify materilized parameter in dbt config --- models/br_rf_cno/br_rf_cno__areas.sql | 8 +++++++- models/br_rf_cno/br_rf_cno__cnaes.sql | 2 +- models/br_rf_cno/br_rf_cno__microdados.sql | 2 +- models/br_rf_cno/br_rf_cno__vinculos.sql | 2 +- 4 files changed, 10 insertions(+), 4 deletions(-) diff --git a/models/br_rf_cno/br_rf_cno__areas.sql b/models/br_rf_cno/br_rf_cno__areas.sql index 90897129..fd56f62f 100644 --- a/models/br_rf_cno/br_rf_cno__areas.sql +++ b/models/br_rf_cno/br_rf_cno__areas.sql @@ -1,4 +1,10 @@ -{{ config(alias="areas", schema="br_rf_cno") }} +{{ + config( + alias="areas", + schema="br_rf_cno", + materialized="table", + ) +}} select safe_cast(id_cno as string) id_cno, diff --git a/models/br_rf_cno/br_rf_cno__cnaes.sql b/models/br_rf_cno/br_rf_cno__cnaes.sql index ea72576a..81d77ef4 100644 --- a/models/br_rf_cno/br_rf_cno__cnaes.sql +++ b/models/br_rf_cno/br_rf_cno__cnaes.sql @@ -1,4 +1,4 @@ -{{ config(alias="cnaes", schema="br_rf_cno") }} +{{ config(alias="cnaes", schema="br_rf_cno", materialized="table") }} select safe_cast(data_registro as date) data_registro, safe_cast(id_cno as string) id_cno, diff --git a/models/br_rf_cno/br_rf_cno__microdados.sql b/models/br_rf_cno/br_rf_cno__microdados.sql index 0d37f9d4..51cd7145 100644 --- a/models/br_rf_cno/br_rf_cno__microdados.sql +++ b/models/br_rf_cno/br_rf_cno__microdados.sql @@ -1,4 +1,4 @@ -{{ config(alias="microdados", schema="br_rf_cno") }} +{{ config(alias="microdados", schema="br_rf_cno", materialized="table") }} select safe_cast(data_situacao as date) data_situacao, diff --git a/models/br_rf_cno/br_rf_cno__vinculos.sql b/models/br_rf_cno/br_rf_cno__vinculos.sql index 42f7949e..970e03c0 100644 --- a/models/br_rf_cno/br_rf_cno__vinculos.sql +++ b/models/br_rf_cno/br_rf_cno__vinculos.sql @@ -1,4 +1,4 @@ -{{ config(alias="vinculos", schema="br_rf_cno") }} +{{ config(alias="vinculos", schema="br_rf_cno", materialized="table") }} select