Delete old tables
This commit is contained in:
parent
1ad3fbca6c
commit
609185904f
@ -1,14 +0,0 @@
|
||||
config {
|
||||
type: "table",
|
||||
schema: "pphe_five9_gold",
|
||||
assertions: {
|
||||
uniqueKey: ["CALL_ID", "TIMESTAMP_MILLISECOND"],
|
||||
nonNull: ["CALL_ID"]
|
||||
},
|
||||
tags: ["daily"],
|
||||
description: "Daily load of CALLS table from stg"
|
||||
}
|
||||
|
||||
select
|
||||
*
|
||||
from ${ref("stg_CALLS")}
|
||||
@ -1,6 +0,0 @@
|
||||
config {
|
||||
type: "declaration",
|
||||
schema: "pphe_five9_raw",
|
||||
name: "CALL_SOURCE",
|
||||
description: ""
|
||||
}
|
||||
@ -1,56 +0,0 @@
|
||||
config {
|
||||
type: "table",
|
||||
schema: "pphe_five9_stg",
|
||||
assertions: {
|
||||
uniqueKey: ["CALL_ID", "TIMESTAMP_MILLISECOND"],
|
||||
nonNull: ["CALL_ID", "AGENT_GROUP_ID", "DISPOSITION_ID",, "DISPOSITION_GROUP_ID",
|
||||
"DISPOSITION_GROUP", "CAMPAIGN_ID", "CAMPAIGN_GROUP_ID",
|
||||
"CAMPAIGN_GROUP", "SKILL_ID"]
|
||||
},
|
||||
tags: ["daily"],
|
||||
description: "CALLS data with mappings"
|
||||
}
|
||||
|
||||
select cl.TIMESTAMP,
|
||||
replace(safe_cast(safe_cast(cl.DATE as date) as string), '-', '') DATE,
|
||||
cl.HOUR_OF_DAY,
|
||||
cl.DAY_OF_WEEK,
|
||||
cl.MONTH,
|
||||
cl.YEAR,
|
||||
cl.CALL_ID,
|
||||
cl.HOTEL_NAME,
|
||||
cl.AGENT_ID,
|
||||
cl.AGENT_NAME,
|
||||
a.LANGUAGES,
|
||||
a.CODE LANGUAUGE_ID,
|
||||
a.AGENT_GROUP_ID,
|
||||
cl.AGENT_GROUP,
|
||||
d.DISPOSITION_ID,
|
||||
cl.DISPOSITION,
|
||||
d.DISPOSITION_GROUP_ID,
|
||||
d.DISPOSITION_GROUP,
|
||||
c.CAMPAIGN_ID,
|
||||
cl.CAMPAIGN,
|
||||
c.CAMPAIGN_GROUP_ID,
|
||||
c.CAMPAIGN_GROUP,
|
||||
cl.SKILL,
|
||||
s.SKILL_ID,
|
||||
cl.CALL_TIME,
|
||||
cl.RING_TIME,
|
||||
cl.TALK_TIME,
|
||||
cl.SPEED_OF_ANSWER,
|
||||
cl.AFTER_CALL_WORK_TIME,
|
||||
cl.CALLS,
|
||||
cl.ANI,
|
||||
c.CAMPAIGN_TYPE_ID,
|
||||
cl.CAMPAIGN_TYPE,
|
||||
cl.TIMESTAMP_MILLISECOND
|
||||
from ${ref("stg_CALL_SOURCE")} cl
|
||||
left join ${ref("stg_AGENT")} a
|
||||
on cl.AGENT_ID = a.AGENT_ID
|
||||
left join ${ref("stg_DISPOSITION")} d
|
||||
on cl.DISPOSITION = d.DISPOSITION
|
||||
left join ${ref("stg_CAMPAIGN")} c
|
||||
on cl.CAMPAIGN = c.CAMPAIGN
|
||||
left join ${ref("stg_MAPPING_SKILL")} s
|
||||
on cl.SKILL = s.SKILL
|
||||
@ -1,14 +0,0 @@
|
||||
config {
|
||||
type: "table",
|
||||
schema: "pphe_five9_stg",
|
||||
assertions: {
|
||||
uniqueKey: ["CALL_ID", "TIMESTAMP_MILLISECOND"],
|
||||
nonNull: ["CALL_ID"]
|
||||
},
|
||||
tags: ["daily"],
|
||||
description: "Daily load of CALL_SOURCE table from raw"
|
||||
}
|
||||
|
||||
select
|
||||
*
|
||||
from ${ref("CALL_SOURCE")}
|
||||
Loading…
Reference in New Issue
Block a user