From a933ca7687c563f8a715b9bdb63bd7cc09ed9456 Mon Sep 17 00:00:00 2001 From: Alex Higgs Date: Wed, 27 Jan 2021 19:45:07 +0000 Subject: [PATCH] Fixed key naming conventions --- models/raw_vault/t_links/t_link_transactions.sql | 2 +- models/stage/v_stg_transactions.sql | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/models/raw_vault/t_links/t_link_transactions.sql b/models/raw_vault/t_links/t_link_transactions.sql index 9b06258..8759a19 100644 --- a/models/raw_vault/t_links/t_link_transactions.sql +++ b/models/raw_vault/t_links/t_link_transactions.sql @@ -1,6 +1,6 @@ {%- set source_model = "v_stg_transactions" -%} {%- set src_pk = "TRANSACTION_PK" -%} -{%- set src_fk = ["CUSTOMER_FK", "ORDER_FK"] -%} +{%- set src_fk = ["CUSTOMER_PK", "ORDER_PK"] -%} {%- set src_payload = ["TRANSACTION_NUMBER", "TRANSACTION_DATE", "TYPE", "AMOUNT"] -%} {%- set src_eff = "EFFECTIVE_FROM" -%} {%- set src_ldts = "LOAD_DATE" -%} diff --git a/models/stage/v_stg_transactions.sql b/models/stage/v_stg_transactions.sql index e309669..d6359a0 100644 --- a/models/stage/v_stg_transactions.sql +++ b/models/stage/v_stg_transactions.sql @@ -8,9 +8,8 @@ hashed_columns: TRANSACTION_PK: - 'CUSTOMER_ID' - 'TRANSACTION_NUMBER' - CUSTOMER_FK: 'CUSTOMER_ID' CUSTOMER_PK: 'CUSTOMER_ID' - ORDER_FK: 'ORDER_ID' + ORDER_PK: 'ORDER_ID' {%- endset -%} {% set metadata_dict = fromyaml(yaml_metadata) %}