From 41e72a5f129d2b11016d38a15d13a99c481d6e1f Mon Sep 17 00:00:00 2001 From: sydneynotthecity Date: Mon, 11 Nov 2024 09:55:53 -0600 Subject: [PATCH 1/2] Untag staging and intermediate models --- models/intermediate/trades/int_trade_agg_day.sql | 3 +-- models/intermediate/trades/int_trade_agg_month.sql | 3 +-- models/intermediate/trades/int_trade_agg_week.sql | 3 +-- models/intermediate/trades/int_trade_agg_year.sql | 3 +-- models/staging/stg_account_signers.sql | 4 +--- models/staging/stg_accounts.sql | 4 +--- models/staging/stg_claimable_balances.sql | 4 +--- models/staging/stg_config_settings.sql | 4 +--- models/staging/stg_contract_code.sql | 4 +--- models/staging/stg_contract_data.sql | 4 +--- models/staging/stg_history_assets.sql | 4 +--- models/staging/stg_history_effects.sql | 4 +--- models/staging/stg_history_ledgers.sql | 4 +--- models/staging/stg_history_operations.sql | 4 +--- models/staging/stg_history_trades.sql | 4 +--- models/staging/stg_history_transactions.sql | 4 +--- models/staging/stg_liquidity_pools.sql | 4 +--- models/staging/stg_offers.sql | 4 +--- models/staging/stg_trust_lines.sql | 4 +--- models/staging/stg_ttl.sql | 4 +--- 20 files changed, 20 insertions(+), 56 deletions(-) diff --git a/models/intermediate/trades/int_trade_agg_day.sql b/models/intermediate/trades/int_trade_agg_day.sql index 15e8867..1b559dd 100644 --- a/models/intermediate/trades/int_trade_agg_day.sql +++ b/models/intermediate/trades/int_trade_agg_day.sql @@ -1,6 +1,5 @@ {{ config( - tags = ["trade_agg"] - , cluster_by =["asset_a", "asset_b"] + cluster_by =["asset_a", "asset_b"] ) }} diff --git a/models/intermediate/trades/int_trade_agg_month.sql b/models/intermediate/trades/int_trade_agg_month.sql index e10c468..3da6b74 100644 --- a/models/intermediate/trades/int_trade_agg_month.sql +++ b/models/intermediate/trades/int_trade_agg_month.sql @@ -1,6 +1,5 @@ {{ config( - tags = ["trade_agg"] - , cluster_by =["asset_a", "asset_b"] + cluster_by =["asset_a", "asset_b"] ) }} diff --git a/models/intermediate/trades/int_trade_agg_week.sql b/models/intermediate/trades/int_trade_agg_week.sql index 4c628ae..5584e5e 100644 --- a/models/intermediate/trades/int_trade_agg_week.sql +++ b/models/intermediate/trades/int_trade_agg_week.sql @@ -1,6 +1,5 @@ {{ config( - tags = ["trade_agg"] - , cluster_by =["asset_a", "asset_b"] + cluster_by =["asset_a", "asset_b"] ) }} diff --git a/models/intermediate/trades/int_trade_agg_year.sql b/models/intermediate/trades/int_trade_agg_year.sql index e67309f..369860c 100644 --- a/models/intermediate/trades/int_trade_agg_year.sql +++ b/models/intermediate/trades/int_trade_agg_year.sql @@ -1,6 +1,5 @@ {{ config( - tags = ["trade_agg"] - , cluster_by =["asset_a", "asset_b"] + cluster_by =["asset_a", "asset_b"] ) }} diff --git a/models/staging/stg_account_signers.sql b/models/staging/stg_account_signers.sql index 43b0045..3ddddac 100644 --- a/models/staging/stg_account_signers.sql +++ b/models/staging/stg_account_signers.sql @@ -1,6 +1,4 @@ -{{ config( - tags = ["enriched_history_operations"] - ) +{{ config() }} with diff --git a/models/staging/stg_accounts.sql b/models/staging/stg_accounts.sql index 6d93497..f08e875 100644 --- a/models/staging/stg_accounts.sql +++ b/models/staging/stg_accounts.sql @@ -1,6 +1,4 @@ -{{ config( - tags = ["enriched_history_operations"] - ) +{{ config() }} with diff --git a/models/staging/stg_claimable_balances.sql b/models/staging/stg_claimable_balances.sql index 261ef22..0d41fc2 100644 --- a/models/staging/stg_claimable_balances.sql +++ b/models/staging/stg_claimable_balances.sql @@ -1,6 +1,4 @@ -{{ config( - tags = ["enriched_history_operations"] - ) +{{ config() }} with diff --git a/models/staging/stg_config_settings.sql b/models/staging/stg_config_settings.sql index 91e226c..060a879 100644 --- a/models/staging/stg_config_settings.sql +++ b/models/staging/stg_config_settings.sql @@ -1,6 +1,4 @@ -{{ config( - tags = ["enriched_history_operations"] - ) +{{ config() }} with diff --git a/models/staging/stg_contract_code.sql b/models/staging/stg_contract_code.sql index 9551456..0e3da66 100644 --- a/models/staging/stg_contract_code.sql +++ b/models/staging/stg_contract_code.sql @@ -1,6 +1,4 @@ -{{ config( - tags = ["enriched_history_operations"] - ) +{{ config() }} with diff --git a/models/staging/stg_contract_data.sql b/models/staging/stg_contract_data.sql index bdf26a3..6bcfbb4 100644 --- a/models/staging/stg_contract_data.sql +++ b/models/staging/stg_contract_data.sql @@ -1,6 +1,4 @@ -{{ config( - tags = ["enriched_history_operations"] - ) +{{ config() }} with diff --git a/models/staging/stg_history_assets.sql b/models/staging/stg_history_assets.sql index 05cc79e..344b52d 100644 --- a/models/staging/stg_history_assets.sql +++ b/models/staging/stg_history_assets.sql @@ -1,6 +1,4 @@ -{{ config( - tags = ["enriched_history_operations"] - ) +{{ config() }} /* This query prepares the assets of each load for deduplication, diff --git a/models/staging/stg_history_effects.sql b/models/staging/stg_history_effects.sql index 72685b1..b3c633a 100644 --- a/models/staging/stg_history_effects.sql +++ b/models/staging/stg_history_effects.sql @@ -1,6 +1,4 @@ -{{ config( - tags = ["enriched_history_operations"] - ) +{{ config() }} with diff --git a/models/staging/stg_history_ledgers.sql b/models/staging/stg_history_ledgers.sql index 362c64c..58064df 100644 --- a/models/staging/stg_history_ledgers.sql +++ b/models/staging/stg_history_ledgers.sql @@ -1,6 +1,4 @@ -{{ config( - tags = ["enriched_history_operations"] - ) +{{ config() }} with diff --git a/models/staging/stg_history_operations.sql b/models/staging/stg_history_operations.sql index 01a608c..b39fc61 100644 --- a/models/staging/stg_history_operations.sql +++ b/models/staging/stg_history_operations.sql @@ -1,6 +1,4 @@ -{{ config( - tags = ["enriched_history_operations"] - ) +{{ config() }} with diff --git a/models/staging/stg_history_trades.sql b/models/staging/stg_history_trades.sql index ee144cd..4832204 100644 --- a/models/staging/stg_history_trades.sql +++ b/models/staging/stg_history_trades.sql @@ -1,6 +1,4 @@ -{{ config( - tags = ["enriched_history_operations"] - ) +{{ config() }} with diff --git a/models/staging/stg_history_transactions.sql b/models/staging/stg_history_transactions.sql index b856262..af634bb 100644 --- a/models/staging/stg_history_transactions.sql +++ b/models/staging/stg_history_transactions.sql @@ -1,6 +1,4 @@ -{{ config( - tags = ["enriched_history_operations"] - ) +{{ config() }} with diff --git a/models/staging/stg_liquidity_pools.sql b/models/staging/stg_liquidity_pools.sql index cac493e..1bf2a8f 100644 --- a/models/staging/stg_liquidity_pools.sql +++ b/models/staging/stg_liquidity_pools.sql @@ -1,6 +1,4 @@ -{{ config( - tags = ["enriched_history_operations"] - ) +{{ config() }} with diff --git a/models/staging/stg_offers.sql b/models/staging/stg_offers.sql index c3f8aeb..3cbd6b0 100644 --- a/models/staging/stg_offers.sql +++ b/models/staging/stg_offers.sql @@ -1,6 +1,4 @@ -{{ config( - tags = ["enriched_history_operations"] - ) +{{ config() }} with diff --git a/models/staging/stg_trust_lines.sql b/models/staging/stg_trust_lines.sql index 6a16b4e..118770f 100644 --- a/models/staging/stg_trust_lines.sql +++ b/models/staging/stg_trust_lines.sql @@ -1,6 +1,4 @@ -{{ config( - tags = ["enriched_history_operations"] - ) +{{ config() }} with diff --git a/models/staging/stg_ttl.sql b/models/staging/stg_ttl.sql index 9d6383f..78f2d62 100644 --- a/models/staging/stg_ttl.sql +++ b/models/staging/stg_ttl.sql @@ -1,6 +1,4 @@ -{{ config( - tags = ["enriched_history_operations"] - ) +{{ config() }} with From dbc543f120ad1a4a0ac0fb7de12c8459e540b168 Mon Sep 17 00:00:00 2001 From: sydneynotthecity Date: Mon, 11 Nov 2024 10:24:26 -0600 Subject: [PATCH 2/2] Remove empty config definition --- models/staging/stg_account_signers.sql | 3 --- models/staging/stg_accounts.sql | 3 --- models/staging/stg_claimable_balances.sql | 3 --- models/staging/stg_config_settings.sql | 3 --- models/staging/stg_contract_code.sql | 3 --- models/staging/stg_contract_data.sql | 3 --- models/staging/stg_history_assets.sql | 3 --- models/staging/stg_history_effects.sql | 3 --- models/staging/stg_history_ledgers.sql | 3 --- models/staging/stg_history_operations.sql | 3 --- models/staging/stg_history_trades.sql | 3 --- models/staging/stg_history_transactions.sql | 3 --- models/staging/stg_liquidity_pools.sql | 3 --- models/staging/stg_offers.sql | 3 --- models/staging/stg_trust_lines.sql | 3 --- models/staging/stg_ttl.sql | 3 --- 16 files changed, 48 deletions(-) diff --git a/models/staging/stg_account_signers.sql b/models/staging/stg_account_signers.sql index 3ddddac..2407877 100644 --- a/models/staging/stg_account_signers.sql +++ b/models/staging/stg_account_signers.sql @@ -1,6 +1,3 @@ -{{ config() -}} - with raw_table as ( select * diff --git a/models/staging/stg_accounts.sql b/models/staging/stg_accounts.sql index f08e875..1e8f27f 100644 --- a/models/staging/stg_accounts.sql +++ b/models/staging/stg_accounts.sql @@ -1,6 +1,3 @@ -{{ config() -}} - with raw_table as ( select * diff --git a/models/staging/stg_claimable_balances.sql b/models/staging/stg_claimable_balances.sql index 0d41fc2..dfd566a 100644 --- a/models/staging/stg_claimable_balances.sql +++ b/models/staging/stg_claimable_balances.sql @@ -1,6 +1,3 @@ -{{ config() -}} - with raw_table as ( select * diff --git a/models/staging/stg_config_settings.sql b/models/staging/stg_config_settings.sql index 060a879..eac77f1 100644 --- a/models/staging/stg_config_settings.sql +++ b/models/staging/stg_config_settings.sql @@ -1,6 +1,3 @@ -{{ config() -}} - with raw_table as ( select * diff --git a/models/staging/stg_contract_code.sql b/models/staging/stg_contract_code.sql index 0e3da66..5e5e599 100644 --- a/models/staging/stg_contract_code.sql +++ b/models/staging/stg_contract_code.sql @@ -1,6 +1,3 @@ -{{ config() -}} - with raw_table as ( select * diff --git a/models/staging/stg_contract_data.sql b/models/staging/stg_contract_data.sql index 6bcfbb4..cdec497 100644 --- a/models/staging/stg_contract_data.sql +++ b/models/staging/stg_contract_data.sql @@ -1,6 +1,3 @@ -{{ config() -}} - with raw_table as ( select * diff --git a/models/staging/stg_history_assets.sql b/models/staging/stg_history_assets.sql index 344b52d..85c3586 100644 --- a/models/staging/stg_history_assets.sql +++ b/models/staging/stg_history_assets.sql @@ -1,6 +1,3 @@ -{{ config() -}} - /* This query prepares the assets of each load for deduplication, in order to guarantee a new asset won't be loaded twice */ with diff --git a/models/staging/stg_history_effects.sql b/models/staging/stg_history_effects.sql index b3c633a..917e82a 100644 --- a/models/staging/stg_history_effects.sql +++ b/models/staging/stg_history_effects.sql @@ -1,6 +1,3 @@ -{{ config() -}} - with raw_table as ( select * diff --git a/models/staging/stg_history_ledgers.sql b/models/staging/stg_history_ledgers.sql index 58064df..1da1229 100644 --- a/models/staging/stg_history_ledgers.sql +++ b/models/staging/stg_history_ledgers.sql @@ -1,6 +1,3 @@ -{{ config() -}} - with raw_table as ( select * diff --git a/models/staging/stg_history_operations.sql b/models/staging/stg_history_operations.sql index b39fc61..e30f357 100644 --- a/models/staging/stg_history_operations.sql +++ b/models/staging/stg_history_operations.sql @@ -1,6 +1,3 @@ -{{ config() -}} - with raw_table as ( select * diff --git a/models/staging/stg_history_trades.sql b/models/staging/stg_history_trades.sql index 4832204..de3db8c 100644 --- a/models/staging/stg_history_trades.sql +++ b/models/staging/stg_history_trades.sql @@ -1,6 +1,3 @@ -{{ config() -}} - with raw_table as ( select * diff --git a/models/staging/stg_history_transactions.sql b/models/staging/stg_history_transactions.sql index af634bb..e429f43 100644 --- a/models/staging/stg_history_transactions.sql +++ b/models/staging/stg_history_transactions.sql @@ -1,6 +1,3 @@ -{{ config() -}} - with raw_table as ( select * diff --git a/models/staging/stg_liquidity_pools.sql b/models/staging/stg_liquidity_pools.sql index 1bf2a8f..91649e6 100644 --- a/models/staging/stg_liquidity_pools.sql +++ b/models/staging/stg_liquidity_pools.sql @@ -1,6 +1,3 @@ -{{ config() -}} - with raw_table as ( select * diff --git a/models/staging/stg_offers.sql b/models/staging/stg_offers.sql index 3cbd6b0..116c31e 100644 --- a/models/staging/stg_offers.sql +++ b/models/staging/stg_offers.sql @@ -1,6 +1,3 @@ -{{ config() -}} - with raw_table as ( select * diff --git a/models/staging/stg_trust_lines.sql b/models/staging/stg_trust_lines.sql index 118770f..4f5f009 100644 --- a/models/staging/stg_trust_lines.sql +++ b/models/staging/stg_trust_lines.sql @@ -1,6 +1,3 @@ -{{ config() -}} - with raw_table as ( select * diff --git a/models/staging/stg_ttl.sql b/models/staging/stg_ttl.sql index 78f2d62..417c097 100644 --- a/models/staging/stg_ttl.sql +++ b/models/staging/stg_ttl.sql @@ -1,6 +1,3 @@ -{{ config() -}} - with raw_table as ( select *