From 7eda7a56baa421a137a53c060e9b394a65ee6344 Mon Sep 17 00:00:00 2001 From: folhesgabriel Date: Tue, 20 Feb 2024 12:04:35 -0300 Subject: [PATCH 1/3] fix: trailing white space in geracao_usina query --- .../br_ons_avaliacao_operacao__geracao_usina.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/br_ons_avaliacao_operacao/br_ons_avaliacao_operacao__geracao_usina.sql b/models/br_ons_avaliacao_operacao/br_ons_avaliacao_operacao__geracao_usina.sql index 9d7b5078..ec1f13d0 100644 --- a/models/br_ons_avaliacao_operacao/br_ons_avaliacao_operacao__geracao_usina.sql +++ b/models/br_ons_avaliacao_operacao/br_ons_avaliacao_operacao__geracao_usina.sql @@ -29,7 +29,7 @@ with safe_cast(tipo_combustivel as string) tipo_combustivel, safe_cast(geracao as float64) geracao from - `basedosdados-staging.br_ons_avaliacao_operacao_staging.geracao_usina ` as t + `basedosdados-staging.br_ons_avaliacao_operacao_staging.geracao_usina` as t ) select distinct * from ons From 5ea1cd5133f0d08dd262f370324688e5f279a6fa Mon Sep 17 00:00:00 2001 From: folhesgabriel Date: Tue, 20 Feb 2024 12:12:37 -0300 Subject: [PATCH 2/3] rerun linter --- .../br_ons_avaliacao_operacao__geracao_usina.sql | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/models/br_ons_avaliacao_operacao/br_ons_avaliacao_operacao__geracao_usina.sql b/models/br_ons_avaliacao_operacao/br_ons_avaliacao_operacao__geracao_usina.sql index ec1f13d0..2de0f0e4 100644 --- a/models/br_ons_avaliacao_operacao/br_ons_avaliacao_operacao__geracao_usina.sql +++ b/models/br_ons_avaliacao_operacao/br_ons_avaliacao_operacao__geracao_usina.sql @@ -29,7 +29,8 @@ with safe_cast(tipo_combustivel as string) tipo_combustivel, safe_cast(geracao as float64) geracao from - `basedosdados-staging.br_ons_avaliacao_operacao_staging.geracao_usina` as t + `basedosdados-staging.br_ons_avaliacao_operacao_staging.geracao_usina` + as t ) select distinct * from ons From a025b51fa05c1f4cb80bdaa09b41b48d179d6348 Mon Sep 17 00:00:00 2001 From: folhesgabriel Date: Tue, 20 Feb 2024 12:54:05 -0300 Subject: [PATCH 3/3] rerun ci dbt --- .gitignore | 1 + .../br_ons_avaliacao_operacao__geracao_usina.sql | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 6b7b16d1..90a377b6 100644 --- a/.gitignore +++ b/.gitignore @@ -11,6 +11,7 @@ dbt_packages/ # Python **/test.py __pycache__/ +.python-version # models/*/tmp/ models/*/input/ diff --git a/models/br_ons_avaliacao_operacao/br_ons_avaliacao_operacao__geracao_usina.sql b/models/br_ons_avaliacao_operacao/br_ons_avaliacao_operacao__geracao_usina.sql index 2de0f0e4..e32f5513 100644 --- a/models/br_ons_avaliacao_operacao/br_ons_avaliacao_operacao__geracao_usina.sql +++ b/models/br_ons_avaliacao_operacao/br_ons_avaliacao_operacao__geracao_usina.sql @@ -28,9 +28,7 @@ with safe_cast(tipo_modalidade_operacao as string) tipo_modalidade_operacao, safe_cast(tipo_combustivel as string) tipo_combustivel, safe_cast(geracao as float64) geracao - from - `basedosdados-staging.br_ons_avaliacao_operacao_staging.geracao_usina` - as t + from `basedosdados-staging.br_ons_avaliacao_operacao_staging.geracao_usina` as t ) select distinct * from ons