Changing tables names
This commit is contained in:
parent
fd30707ff3
commit
5b74df9817
@ -1,6 +1,6 @@
|
|||||||
config {
|
config {
|
||||||
type: "declaration",
|
type: "declaration",
|
||||||
schema: "pphe_five9_raw",
|
schema: "pphe_five9_raw",
|
||||||
name: "CALL_L30D",
|
name: "CALL_SOURCE",
|
||||||
description: ""
|
description: ""
|
||||||
}
|
}
|
||||||
@ -1,6 +1,6 @@
|
|||||||
config {
|
config {
|
||||||
type: "declaration",
|
type: "declaration",
|
||||||
schema: "pphe_five9_raw",
|
schema: "pphe_five9_raw",
|
||||||
name: "DIGITAL_L30D",
|
name: "DIGITAL_SOURCE",
|
||||||
description: ""
|
description: ""
|
||||||
}
|
}
|
||||||
@ -16,7 +16,7 @@ with LANGS as (
|
|||||||
then substr(AGENT_NAME, strpos(AGENT_NAME, '--') + 3)
|
then substr(AGENT_NAME, strpos(AGENT_NAME, '--') + 3)
|
||||||
else null
|
else null
|
||||||
end AS LANGUAGES
|
end AS LANGUAGES
|
||||||
from ${ref("stg_CALL_L30D")}
|
from ${ref("stg_CALL_SOURCE")}
|
||||||
)
|
)
|
||||||
|
|
||||||
select distinct c.AGENT_ID,
|
select distinct c.AGENT_ID,
|
||||||
@ -25,7 +25,7 @@ select distinct c.AGENT_ID,
|
|||||||
ml.CODE,
|
ml.CODE,
|
||||||
c.AGENT_GROUP,
|
c.AGENT_GROUP,
|
||||||
ag.AGENT_GROUP_ID
|
ag.AGENT_GROUP_ID
|
||||||
from ${ref("stg_CALL_L30D")} c
|
from ${ref("stg_CALL_SOURCE")} c
|
||||||
left join ${ref("stg_MAPPING_AGENT_GROUP")} ag
|
left join ${ref("stg_MAPPING_AGENT_GROUP")} ag
|
||||||
on c.AGENT_GROUP = ag.AGENT_GROUP
|
on c.AGENT_GROUP = ag.AGENT_GROUP
|
||||||
left join LANGS l
|
left join LANGS l
|
||||||
|
|||||||
@ -45,7 +45,7 @@ select cl.TIMESTAMP,
|
|||||||
cl.DISPOSITION_GROUP_A,
|
cl.DISPOSITION_GROUP_A,
|
||||||
cl.DISPOSITION_GROUP_B,
|
cl.DISPOSITION_GROUP_B,
|
||||||
cl.DISPOSITION_GROUP_C,
|
cl.DISPOSITION_GROUP_C,
|
||||||
from ${ref("stg_CALL_L30D")} cl
|
from ${ref("stg_CALL_SOURCE")} cl
|
||||||
left join ${ref("stg_AGENT")} a
|
left join ${ref("stg_AGENT")} a
|
||||||
on cl.AGENT_ID = a.AGENT_ID
|
on cl.AGENT_ID = a.AGENT_ID
|
||||||
left join ${ref("stg_DISPOSITION")} d
|
left join ${ref("stg_DISPOSITION")} d
|
||||||
|
|||||||
@ -6,9 +6,9 @@ config {
|
|||||||
nonNull: ["ID"]
|
nonNull: ["ID"]
|
||||||
},
|
},
|
||||||
tags: ["daily"],
|
tags: ["daily"],
|
||||||
description: "Daily load of CALL_L30D table from raw"
|
description: "Daily load of CALL_SOURCE table from raw"
|
||||||
}
|
}
|
||||||
|
|
||||||
select
|
select
|
||||||
*
|
*
|
||||||
from ${ref("CALL_L30D")}
|
from ${ref("CALL_SOURCE")}
|
||||||
@ -33,7 +33,7 @@ select dl.TIMESTAMP,
|
|||||||
dl.HANDLE_TIME,
|
dl.HANDLE_TIME,
|
||||||
dl.TRANSFERS_TO_SKILL,
|
dl.TRANSFERS_TO_SKILL,
|
||||||
dl.INTERACTIONS
|
dl.INTERACTIONS
|
||||||
from ${ref("stg_DIGITAL_L30D")} dl
|
from ${ref("stg_DIGITAL_SOURCE")} dl
|
||||||
left join ${ref("stg_AGENT")} a
|
left join ${ref("stg_AGENT")} a
|
||||||
on dl.AGENT_ID = a.AGENT_ID
|
on dl.AGENT_ID = a.AGENT_ID
|
||||||
left join ${ref("stg_DISPOSITION")} d
|
left join ${ref("stg_DISPOSITION")} d
|
||||||
|
|||||||
@ -6,9 +6,9 @@ config {
|
|||||||
nonNull: ["ID"]
|
nonNull: ["ID"]
|
||||||
},
|
},
|
||||||
tags: ["daily"],
|
tags: ["daily"],
|
||||||
description: "Daily load of DIGITAL_L30D table from raw"
|
description: "Daily load of DIGITAL_SOURCE table from raw"
|
||||||
}
|
}
|
||||||
|
|
||||||
select
|
select
|
||||||
*
|
*
|
||||||
from ${ref("DIGITAL_L30D")}
|
from ${ref("DIGITAL_SOURCE")}
|
||||||
Loading…
Reference in New Issue
Block a user