five9/definitions/export/calls_export.sqlx
2024-06-19 07:18:52 +00:00

10 lines
265 B
Plaintext

config {
type: "table",
schema: "pphe_five9_gold",
tags: ["daily"],
description: "Exporting last 5 days of CALLS table"
}
select *
from ${ref("stg_calls")}
where date(timestamp) >= date_sub(current_datetime("Europe/Amsterdam"), INTERVAL 5 DAY)