From b95702b3774a0fe074865058baa68a1de81b6823 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mattias=20Thal=C3=A9n?= Date: Mon, 2 Dec 2024 09:13:17 +0100 Subject: [PATCH] Add effectivity satellite for card 2 card set link --- .../raw_vault/raw__sat_eff__card__card_set.sql | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 models/silver/raw_vault/raw__sat_eff__card__card_set.sql diff --git a/models/silver/raw_vault/raw__sat_eff__card__card_set.sql b/models/silver/raw_vault/raw__sat_eff__card__card_set.sql new file mode 100644 index 0000000..42db3a1 --- /dev/null +++ b/models/silver/raw_vault/raw__sat_eff__card__card_set.sql @@ -0,0 +1,18 @@ +/* Data vault effectivity satellite model for the Hearthstone cards & card sets */ +MODEL ( + name silver.raw_vault.raw__sat_eff__card__card_set, + kind SCD_TYPE_2_BY_COLUMN ( + unique_key hash_key__card_bk__card_set_bk, + columns [hash_key__card_bk__card_set_bk], + valid_to_name _sqlmesh__valid_to, + valid_from_name _sqlmesh__valid_from + ), + allow_partials TRUE +); + +SELECT + hash_key__card_bk__card_set_bk, + _sqlmesh__record_source, + _sqlmesh__extracted_at, + _sqlmesh__loaded_at +FROM silver.staging.dv_stg__hearthstone__cards \ No newline at end of file