Skip to content

Commit

Permalink
feature: add a dm with the latest info from dset (last_signal) (et/so…
Browse files Browse the repository at this point in the history
…menergia-jardiner!53)

* add the plant_name according to dset (group_name) to the final dm
  • Loading branch information
polmonso committed Dec 12, 2023
1 parent 02b5e7e commit e8d8caf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ with last_dset_batch as (
select
dset.signal_last_ts,
dset.signal_last_value,
dset.group_name,
dset.group_name as dset_plant_name,
metadata.plant_name,
dset.queried_at,
metadata.signal_name,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

select
plant_name as nom_planta,
dset_plant_name as nom_planta_dset,
signal_last_ts as ultim_ts,
signal_last_value as ultim_valor,
queried_at as peticionat_a,
Expand All @@ -12,7 +13,7 @@ select
device_type as tipus_aparell,
device_parent as aparell_pare,
signal_uuid as uuid_senyal,
signal_id as id_dset_senyal,
signal_code as codi_dset_senyal,
signal_id as id_senyal_dset,
signal_code as codi_senyal_dset,
signal_type as tipus_senyal
from {{ ref("int_dset_last_signal__from_latest_batch_dset_last") }}

0 comments on commit e8d8caf

Please sign in to comment.