From 2e8d13501ac46cafec421f61baf00b63d36a4d0c Mon Sep 17 00:00:00 2001 From: Anna Saiapina Date: Wed, 6 Mar 2024 10:30:40 +0000 Subject: [PATCH] Change type from view to table --- definitions/staging/stg_AGENT.sqlx | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/definitions/staging/stg_AGENT.sqlx b/definitions/staging/stg_AGENT.sqlx index 13e3202..5103ea8 100644 --- a/definitions/staging/stg_AGENT.sqlx +++ b/definitions/staging/stg_AGENT.sqlx @@ -1,7 +1,11 @@ config { - type: "view", - schema: "pphe_five9_stg", - tags: ["snapdaily"], + type: "table", + schema: "pphe_five9_stg", + assertions: { + uniqueKey: ["AGENT_ID"], + nonNull: ["AGENT_ID"] + }, + tags: ["daily"], description: "All fields that are connected to the AGENT" }