feat: initial commit for merica-pipeline delivery
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
{{ config(
|
||||
materialized='table',
|
||||
schema='silver'
|
||||
) }}
|
||||
|
||||
WITH raw_sheets AS (
|
||||
SELECT
|
||||
TRIM(CAST(lokasi_tps AS VARCHAR)) AS lokasi_tps,
|
||||
TRIM(CAST(kecamatan AS VARCHAR)) AS kecamatan,
|
||||
CAST(volume_sampah_m3 AS NUMERIC(10,2)) AS volume_sampah_m3,
|
||||
CAST(tanggal_laporan AS DATE) AS tanggal_laporan
|
||||
FROM {{ source('bronze_lakehouse', 'gws_waste_reports') }}
|
||||
WHERE lokasi_tps IS NOT NULL AND lokasi_tps != ''
|
||||
)
|
||||
|
||||
SELECT
|
||||
lokasi_tps,
|
||||
kecamatan,
|
||||
volume_sampah_m3,
|
||||
tanggal_laporan,
|
||||
CURRENT_TIMESTAMP AS ingested_at_silver
|
||||
FROM raw_sheets
|
||||
Reference in New Issue
Block a user