Skip to content

Commit

Permalink
fix: dm_blabla_5m change parent from spined to values_incremental (et…
Browse files Browse the repository at this point in the history
…/somenergia-jardiner!97)

Merge branch 'fix/dm_metrics_production_5m' into 'main'
  • Loading branch information
polmonso committed Feb 2, 2024
2 parents df7f9b2 + 04e1c23 commit d76728e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{ config(materialized="table") }}

select *
from {{ ref("int_dset_responses__spined_metadata") }}
from {{ ref("int_dset_responses__values_incremental") }}
where signal_last_ts > (current_date - interval '30 days')
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ select
metric_name as nom_metrica,
signal_name as senyal,
device_parent as nom_aparell_pare
from {{ ref("int_dset_responses__spined_metadata") }}
from {{ ref("int_dset_responses__values_incremental") }}
where
device_type in ('inverter', 'sensor', 'string')
and ts > (now() at time zone 'Europe/Madrid')::date - interval '30 days'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ with last_registries as (
signal_name as senyal,
signal_unit as unitat_senyal,
signal_value as valor
from {{ ref("int_dset_responses__spined_metadata") }} as dset
from {{ ref("int_dset_responses__values_incremental") }} as dset
where device_type in ('inverter','sensor', 'string')
order by signal_uuid, ts desc, plant_name
)
Expand Down

0 comments on commit d76728e

Please sign in to comment.