From 5b5e923696ed6a9f172308a1a5fdd6922a474827 Mon Sep 17 00:00:00 2001 From: Anna Saiapina Date: Thu, 19 Sep 2024 12:48:35 +0000 Subject: [PATCH] Adding mapping for agent states --- definitions/sources/MAPPING_AGENT_STATE.sqlx | 6 ++++++ definitions/staging/stg_MAPPING_AGENT_STATE.sqlx | 14 ++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 definitions/sources/MAPPING_AGENT_STATE.sqlx create mode 100644 definitions/staging/stg_MAPPING_AGENT_STATE.sqlx diff --git a/definitions/sources/MAPPING_AGENT_STATE.sqlx b/definitions/sources/MAPPING_AGENT_STATE.sqlx new file mode 100644 index 0000000..9be18a0 --- /dev/null +++ b/definitions/sources/MAPPING_AGENT_STATE.sqlx @@ -0,0 +1,6 @@ +config { + type: "declaration", + schema: "pphe_five9_raw", + name: "MAPPING_AGENT_STATE", + description: "" + } \ No newline at end of file diff --git a/definitions/staging/stg_MAPPING_AGENT_STATE.sqlx b/definitions/staging/stg_MAPPING_AGENT_STATE.sqlx new file mode 100644 index 0000000..f0093ce --- /dev/null +++ b/definitions/staging/stg_MAPPING_AGENT_STATE.sqlx @@ -0,0 +1,14 @@ +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