Skip to content

Commit

Permalink
Fixed key naming conventions
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Higgs committed Jan 27, 2021
1 parent b59be4c commit a933ca7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion models/raw_vault/t_links/t_link_transactions.sql
Original file line number Diff line number Diff line change
@@ -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" -%}
Expand Down
3 changes: 1 addition & 2 deletions models/stage/v_stg_transactions.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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) %}
Expand Down

0 comments on commit a933ca7

Please sign in to comment.