Add CUSTOMER_ID

This commit is contained in:
Anna Saiapina 2024-03-18 10:26:29 +00:00 committed by GCP Dataform
parent 5b74df9817
commit 77e0b00c54

View File

@ -2,8 +2,8 @@ config {
type: "table",
schema: "pphe_five9_stg",
assertions: {
uniqueKey: ["?"],
nonNull: ["?"]
uniqueKey: ["CUSTOMER_ID"],
nonNull: ["CUSTOMER_ID"]
},
tags: ["daily"],
description: "DIGITAL data with mappings"
@ -32,7 +32,8 @@ select dl.TIMESTAMP,
s.SKILL_ID,
dl.HANDLE_TIME,
dl.TRANSFERS_TO_SKILL,
dl.INTERACTIONS
dl.INTERACTIONS,
dl.CUSTOMER_ID
from ${ref("stg_DIGITAL_SOURCE")} dl
left join ${ref("stg_AGENT")} a
on dl.AGENT_ID = a.AGENT_ID