From b2be3b8b97e1e770f4eb863162eb95585d343a2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pol=20Mons=C3=B3=20Purt=C3=AD?= Date: Thu, 21 Sep 2023 12:50:39 +0200 Subject: [PATCH] lower severity of values range to warning (et/somenergia-jardiner!11) * lower severity of values range to warning --- dbt_jardiner/models/jardiner/marts/_marts__models.yaml | 3 +++ .../models/jardiner/raw/solargis/_raw_solargis__models.yaml | 4 ---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/dbt_jardiner/models/jardiner/marts/_marts__models.yaml b/dbt_jardiner/models/jardiner/marts/_marts__models.yaml index 302d9bd9..1b4598db 100644 --- a/dbt_jardiner/models/jardiner/marts/_marts__models.yaml +++ b/dbt_jardiner/models/jardiner/marts/_marts__models.yaml @@ -25,6 +25,7 @@ models: - dbt_utils.expression_is_true: expression: ">= energia_instantania_inversor_kwh" config: + severity: warn where: "hora_inici > (now() at time zone 'Europe/Madrid')::date - interval '7 days'" tags: source - name: energia_perduda_inversor_a_comptador @@ -33,6 +34,7 @@ models: max_value: 1 min_value: 0 config: + severity: warn where: "hora_inici > (now() at time zone 'Europe/Madrid')::date - interval '7 days'" tags: source - name: energia_exportada_comptador_kwh @@ -64,6 +66,7 @@ models: max_value: 1 min_value: 0 config: + severity: warn where: "hora_inici > (now() at time zone 'Europe/Madrid')::date - interval '7 days'" - name: hora_disponible - name: hora_total diff --git a/dbt_jardiner/models/jardiner/raw/solargis/_raw_solargis__models.yaml b/dbt_jardiner/models/jardiner/raw/solargis/_raw_solargis__models.yaml index 7d6c12d3..e2081c55 100644 --- a/dbt_jardiner/models/jardiner/raw/solargis/_raw_solargis__models.yaml +++ b/dbt_jardiner/models/jardiner/raw/solargis/_raw_solargis__models.yaml @@ -25,10 +25,6 @@ models: description: sortida d'energia fotovoltaica en wh, des de font original sense transformacions tests: - not_null - - name: source - description: font d'on s'ha obtingut la lectura, des de font original sense transformacions - tests: - - not_null - name: request_time description: timestamp de quan es va fer la sol·licitud de dades, des de font original sense transformacions tests: