From 9388b345b40be0cac83bf825f51217a5eb1e5184 Mon Sep 17 00:00:00 2001 From: Anna Saiapina Date: Tue, 24 Sep 2024 14:52:53 +0000 Subject: [PATCH] New mappings to the stg layer added --- .../staging/stg_MAPPING_AGENT_REASON_CODE.sqlx | 14 ++++++++++++++ definitions/staging/stg_MAPPING_AGENT_STATE.sqlx | 14 -------------- .../staging/stg_MAPPING_AGENT_STATE_GROUP.sqlx | 14 ++++++++++++++ .../staging/stg_MAPPING_AGENT_STATE_GROUP_ID.sqlx | 14 ++++++++++++++ .../staging/stg_MAPPING_AGENT_STATE_ID.sqlx | 14 ++++++++++++++ 5 files changed, 56 insertions(+), 14 deletions(-) create mode 100644 definitions/staging/stg_MAPPING_AGENT_REASON_CODE.sqlx delete mode 100644 definitions/staging/stg_MAPPING_AGENT_STATE.sqlx create mode 100644 definitions/staging/stg_MAPPING_AGENT_STATE_GROUP.sqlx create mode 100644 definitions/staging/stg_MAPPING_AGENT_STATE_GROUP_ID.sqlx create mode 100644 definitions/staging/stg_MAPPING_AGENT_STATE_ID.sqlx diff --git a/definitions/staging/stg_MAPPING_AGENT_REASON_CODE.sqlx b/definitions/staging/stg_MAPPING_AGENT_REASON_CODE.sqlx new file mode 100644 index 0000000..df87199 --- /dev/null +++ b/definitions/staging/stg_MAPPING_AGENT_REASON_CODE.sqlx @@ -0,0 +1,14 @@ +config { + type: "table", + schema: "pphe_five9_stg", + assertions: { + uniqueKey: ["REASON_CODE_ID"], + nonNull: ["REASON_CODE_ID"] + }, + tags: ["daily"], + description: "Daily load of MAPPING_AGENT_REASON_CODE table from raw" +} + +select + * +from ${ref("MAPPING_AGENT_REASON_CODE")} \ No newline at end of file diff --git a/definitions/staging/stg_MAPPING_AGENT_STATE.sqlx b/definitions/staging/stg_MAPPING_AGENT_STATE.sqlx deleted file mode 100644 index f0093ce..0000000 --- a/definitions/staging/stg_MAPPING_AGENT_STATE.sqlx +++ /dev/null @@ -1,14 +0,0 @@ -config { - type: "table", - schema: "pphe_five9_stg", - assertions: { - uniqueKey: ["STATE"], - nonNull: ["STATE"] - }, - tags: ["daily"], - description: "Daily load of MAPPING_AGENT_STATE table from raw" -} - -select - * -from ${ref("MAPPING_AGENT_STATE")} \ No newline at end of file diff --git a/definitions/staging/stg_MAPPING_AGENT_STATE_GROUP.sqlx b/definitions/staging/stg_MAPPING_AGENT_STATE_GROUP.sqlx new file mode 100644 index 0000000..87d51d7 --- /dev/null +++ b/definitions/staging/stg_MAPPING_AGENT_STATE_GROUP.sqlx @@ -0,0 +1,14 @@ +config { + type: "table", + schema: "pphe_five9_stg", + assertions: { + uniqueKey: ["STATE_ID"], + nonNull: ["STATE_ID"] + }, + tags: ["daily"], + description: "Daily load of MAPPING_STATE_AGENT_GROUP table from raw" +} + +select + * +from ${ref("MAPPING_AGENT_STATE_GROUP")} \ No newline at end of file diff --git a/definitions/staging/stg_MAPPING_AGENT_STATE_GROUP_ID.sqlx b/definitions/staging/stg_MAPPING_AGENT_STATE_GROUP_ID.sqlx new file mode 100644 index 0000000..a1ab2e6 --- /dev/null +++ b/definitions/staging/stg_MAPPING_AGENT_STATE_GROUP_ID.sqlx @@ -0,0 +1,14 @@ +config { + type: "table", + schema: "pphe_five9_stg", + assertions: { + uniqueKey: ["STATE_GROUP_ID"], + nonNull: ["STATE_GROUP_ID"] + }, + tags: ["daily"], + description: "Daily load of MAPPING_STATE_AGENT_GROUP_ID table from raw" +} + +select + * +from ${ref("MAPPING_AGENT_STATE_GROUP_ID")} \ No newline at end of file diff --git a/definitions/staging/stg_MAPPING_AGENT_STATE_ID.sqlx b/definitions/staging/stg_MAPPING_AGENT_STATE_ID.sqlx new file mode 100644 index 0000000..3289ee6 --- /dev/null +++ b/definitions/staging/stg_MAPPING_AGENT_STATE_ID.sqlx @@ -0,0 +1,14 @@ +config { + type: "table", + schema: "pphe_five9_stg", + assertions: { + uniqueKey: ["STATE_ID"], + nonNull: ["STATE_ID"] + }, + tags: ["daily"], + description: "Daily load of MAPPING_AGENT_STATE_ID table from raw" +} + +select + * +from ${ref("MAPPING_AGENT_STATE_ID")} \ No newline at end of file