Changing tables names

This commit is contained in:
Anna Saiapina 2024-03-13 16:02:55 +00:00 committed by GCP Dataform
parent fd30707ff3
commit 5b74df9817
7 changed files with 10 additions and 10 deletions

View File

@ -1,6 +1,6 @@
config {
type: "declaration",
schema: "pphe_five9_raw",
name: "CALL_L30D",
name: "CALL_SOURCE",
description: ""
}

View File

@ -1,6 +1,6 @@
config {
type: "declaration",
schema: "pphe_five9_raw",
name: "DIGITAL_L30D",
name: "DIGITAL_SOURCE",
description: ""
}

View File

@ -16,7 +16,7 @@ with LANGS as (
then substr(AGENT_NAME, strpos(AGENT_NAME, '--') + 3)
else null
end AS LANGUAGES
from ${ref("stg_CALL_L30D")}
from ${ref("stg_CALL_SOURCE")}
)
select distinct c.AGENT_ID,
@ -25,7 +25,7 @@ select distinct c.AGENT_ID,
ml.CODE,
c.AGENT_GROUP,
ag.AGENT_GROUP_ID
from ${ref("stg_CALL_L30D")} c
from ${ref("stg_CALL_SOURCE")} c
left join ${ref("stg_MAPPING_AGENT_GROUP")} ag
on c.AGENT_GROUP = ag.AGENT_GROUP
left join LANGS l

View File

@ -45,7 +45,7 @@ select cl.TIMESTAMP,
cl.DISPOSITION_GROUP_A,
cl.DISPOSITION_GROUP_B,
cl.DISPOSITION_GROUP_C,
from ${ref("stg_CALL_L30D")} cl
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

View File

@ -6,9 +6,9 @@ config {
nonNull: ["ID"]
},
tags: ["daily"],
description: "Daily load of CALL_L30D table from raw"
description: "Daily load of CALL_SOURCE table from raw"
}
select
*
from ${ref("CALL_L30D")}
from ${ref("CALL_SOURCE")}

View File

@ -33,7 +33,7 @@ select dl.TIMESTAMP,
dl.HANDLE_TIME,
dl.TRANSFERS_TO_SKILL,
dl.INTERACTIONS
from ${ref("stg_DIGITAL_L30D")} dl
from ${ref("stg_DIGITAL_SOURCE")} dl
left join ${ref("stg_AGENT")} a
on dl.AGENT_ID = a.AGENT_ID
left join ${ref("stg_DISPOSITION")} d

View File

@ -6,9 +6,9 @@ config {
nonNull: ["ID"]
},
tags: ["daily"],
description: "Daily load of DIGITAL_L30D table from raw"
description: "Daily load of DIGITAL_SOURCE table from raw"
}
select
*
from ${ref("DIGITAL_L30D")}
from ${ref("DIGITAL_SOURCE")}