From 0b1ba298258d573869a2ab923414330b1006b91a Mon Sep 17 00:00:00 2001 From: Anna Saiapina Date: Mon, 11 Mar 2024 12:07:09 +0000 Subject: [PATCH] Adding tables to the gold stage --- definitions/gold/CALLS.sqlx | 14 ++++++++++++++ definitions/gold/DIGITAL.sqlx | 14 ++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 definitions/gold/CALLS.sqlx create mode 100644 definitions/gold/DIGITAL.sqlx diff --git a/definitions/gold/CALLS.sqlx b/definitions/gold/CALLS.sqlx new file mode 100644 index 0000000..a0e58db --- /dev/null +++ b/definitions/gold/CALLS.sqlx @@ -0,0 +1,14 @@ +config { + type: "table", + schema: "pphe_five9_gold", + assertions: { + uniqueKey: ["CALL_ID"], + nonNull: ["CALL_ID"] + }, + tags: ["daily"], + description: "Daily load of CALLS table from stg" +} + +select + * +from ${ref("stg_CALLS")} \ No newline at end of file diff --git a/definitions/gold/DIGITAL.sqlx b/definitions/gold/DIGITAL.sqlx new file mode 100644 index 0000000..62d0b07 --- /dev/null +++ b/definitions/gold/DIGITAL.sqlx @@ -0,0 +1,14 @@ +config { + type: "table", + schema: "pphe_five9_gold", + assertions: { + uniqueKey: ["?"], + nonNull: ["?"] + }, + tags: ["daily"], + description: "Daily load of DIGITAL table from stg" +} + +select + * +from ${ref("stg_DIGITAL")} \ No newline at end of file