feat(appliance): initial release of MERICA standalone appliance v1.0.0
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
{{ config(
|
||||
materialized='table',
|
||||
schema='gold'
|
||||
) }}
|
||||
|
||||
SELECT
|
||||
stasiun_id,
|
||||
nama_stasiun,
|
||||
CAST(recorded_at AS DATE) AS observation_date,
|
||||
AVG(pm25_value) AS avg_pm25,
|
||||
MAX(pm25_value) AS max_pm25,
|
||||
AVG(pm10_value) AS avg_pm10,
|
||||
MAX(pm10_value) AS max_pm10,
|
||||
CURRENT_TIMESTAMP AS refreshed_at_gold
|
||||
FROM {{ ref('silver_spku_sensor_clean') }}
|
||||
GROUP BY 1, 2, 3
|
||||
Reference in New Issue
Block a user