-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Resolve "Gràfica Totes les plantes-Evolució mes a mes. Aquí nomes hau…
…ria d’anar nomes l’energia de les plantes FV per que son les que es comparen amb solargis" (et/somenergia-jardiner!109) Closes #46 Merge branch '46-grafica-totes-les-plantes-evolucio-mes-a-mes-aqui-nomes-hauria-d-anar-nomes-l-energia-de-les' into 'main'
- Loading branch information
Showing
4 changed files
with
61 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 19 additions & 19 deletions
38
dbt_jardiner/models/jardiner/raw/gestio_actius/raw_gestio_actius_production_target.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
{{ config(materialized='view') }} | ||
|
||
SELECT | ||
planta as plant, | ||
enero::numeric as january, | ||
febrero::numeric as february, | ||
marzo::numeric as march, | ||
abril::numeric as april, | ||
mayo::numeric as may, | ||
junio::numeric as june, | ||
julio::numeric as july, | ||
agosto::numeric as august, | ||
septiembre::numeric as september, | ||
octubre::numeric as october, | ||
noviembre::numeric as november, | ||
diciembre::numeric as december, | ||
data_actualitzacio::date as gestio_actius_updated_at, | ||
dbt_updated_at::date as dbt_updated_at, | ||
dbt_valid_from::date as dbt_valid_from, | ||
coalesce(dbt_valid_to::date, '2050-01-01'::date)::date as dbt_valid_to | ||
FROM {{ ref('snapshot_production_target') }} as obj | ||
select | ||
planta as plant_name, | ||
enero::numeric as january, | ||
febrero::numeric as february, | ||
marzo::numeric as march, | ||
abril::numeric as april, | ||
mayo::numeric as may, | ||
junio::numeric as june, | ||
julio::numeric as july, | ||
agosto::numeric as august, | ||
septiembre::numeric as september, | ||
octubre::numeric as october, | ||
noviembre::numeric as november, | ||
diciembre::numeric as december, | ||
data_actualitzacio::date as gestio_actius_updated_at, | ||
dbt_updated_at::date as dbt_updated_at, | ||
dbt_valid_from::date as dbt_valid_from, | ||
coalesce(dbt_valid_to::date, '2050-01-01'::date)::date as dbt_valid_to | ||
from {{ ref('snapshot_production_target') }} |