This commit is contained in:
Anna Saiapina 2024-06-17 14:52:48 +00:00 committed by GCP Dataform
parent f04f8bb0ef
commit dc7482e030
2 changed files with 2 additions and 16 deletions

View File

@ -6,5 +6,5 @@ config {
}
select *
from ${ref("DIGITAL")}
where date(timestamp_millisecond) >= date_sub(current_datetime("Europe/Amsterdam"), INTERVAL 5 DAY)
from ${ref("stg_digital")}
where date(timestamp) >= date_sub(current_datetime("Europe/Amsterdam"), INTERVAL 5 DAY)

View File

@ -1,14 +0,0 @@
config {
type: "table",
schema: "pphe_five9_gold",
assertions: {
uniqueKey: ["CUSTOMER_ID", "TIMESTAMP_MILLISECOND"],
nonNull: ["CUSTOMER_ID"]
},
tags: ["daily"],
description: "Daily load of DIGITAL table from stg"
}
select
*
from ${ref("stg_DIGITAL")}