add deprecated tag

This commit is contained in:
Jack Forgash 2025-04-01 11:07:53 -06:00
parent e3db447f94
commit 51a3be6534
18 changed files with 20 additions and 18 deletions

View File

@ -1,6 +1,6 @@
{{ config(
materialized = 'view',
tags = ['core', 'nft', 'pagoda']
tags = ['core', 'nft', 'pagoda', 'deprecated']
) }}
-- reminder update bi_analytics with deprecating flag

View File

@ -88,7 +88,7 @@ WITH intents AS (
{% if var("MANUAL_FIX") %}
WHERE
{{ partition_load_manual('no_buffer', block_id) }}
{{ partition_load_manual('no_buffer', 'FLOOR(block_id, -3)') }}
{% else %}
{% if is_incremental() %}

View File

@ -2,7 +2,7 @@
materialized = 'incremental',
unique_key = 'test_timestamp',
full_refresh = False,
tags = ['observability']
tags = ['observability', 'deprecated']
) }}
-- TODO this can be deprecated. Not a good metric of completeness.
WITH summary_stats AS (

View File

@ -7,7 +7,7 @@
merge_exclude_columns = ["inserted_timestamp"],
unique_key = 'action_id',
cluster_by = ['block_timestamp::DATE', 'modified_timestamp::DATE'],
tags = ['actions', 'curated','scheduled_non_core']
tags = ['actions', 'curated','scheduled_non_core', 'deprecated']
) }}
{# NOTE - used downstream in Social models, no longer a gold view on just this #}

View File

@ -9,7 +9,7 @@
cluster_by = ['block_timestamp::DATE', 'modified_timestamp::DATE'],
unique_key = 'action_id',
post_hook = "ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(action_id,tx_hash,receiver_id,predecessor_id,signer_id,method_name);",
tags = ['actions', 'curated','scheduled_core', 'grail']
tags = ['actions', 'curated','scheduled_core', 'grail', 'deprecated']
) }}
-- todo deprecate this model
WITH action_events AS (

View File

@ -8,7 +8,7 @@
cluster_by = ['block_timestamp::DATE', 'modified_timestamp::DATE'],
unique_key = 'action_id',
post_hook = "ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(tx_hash,signer_id,receipt_object_id,receiver_id);",
tags = ['actions', 'curated','scheduled_core', 'grail']
tags = ['actions', 'curated','scheduled_core', 'grail', 'deprecated']
) }}
-- todo deprecate this model
WITH receipts AS (

View File

@ -1,6 +1,6 @@
{{ config(
materialized = 'ephemeral',
tags = ['helper', 'receipt_map']
tags = ['helper', 'receipt_map', 'deprecated']
) }}
SELECT

View File

@ -1,6 +1,6 @@
{{ config(
materialized = 'view',
tags = ['helper', 'receipt_map']
tags = ['helper', 'receipt_map', 'deprecated']
) }}
WITH receipts AS (

View File

@ -1,7 +1,7 @@
{{ config(
materalized = 'view',
unique_key = 'receipt_id',
tags = ['helper', 'receipt_map']
tags = ['helper', 'receipt_map', 'deprecated']
) }}
WITH

View File

@ -6,7 +6,7 @@
merge_exclude_columns = ['inserted_timestamp'],
cluster_by = ['block_timestamp::DATE','_inserted_timestamp::DATE', '_partition_by_block_number'],
unique_key = 'block_id',
tags = ['load', 'load_blocks', 'deprecated_lake_archive'],
tags = ['load', 'load_blocks', 'deprecated'],
full_refresh = False
) }}

View File

@ -5,7 +5,7 @@
merge_exclude_columns = ['inserted_timestamp'],
unique_key = 'receipt_id',
cluster_by = ['modified_timestamp::date', '_partition_by_block_number'],
tags = ['load', 'load_shards', 'deprecated_lake_archive']
tags = ['load', 'load_shards', 'deprecated']
) }}
WITH shards AS (

View File

@ -6,7 +6,7 @@
unique_key = 'receipt_object_id',
cluster_by = ['block_timestamp::DATE','modified_timestamp::DATE', '_partition_by_block_number', ],
post_hook = "ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(tx_hash,receipt_id,receiver_id,predecessor_id);",
tags = ['receipt_map', 'deprecated_lake_archive'],
tags = ['receipt_map', 'deprecated'],
full_refresh = False
) }}

View File

@ -5,7 +5,7 @@
merge_exclude_columns = ['inserted_timestamp'],
cluster_by = ['_inserted_timestamp::DATE', '_partition_by_block_number'],
unique_key = 'shard_id',
tags = ['load', 'load_shards', 'deprecated_lake_archive'],
tags = ['load', 'load_shards', 'deprecated'],
full_refresh = False
) }}

View File

@ -5,7 +5,7 @@
merge_exclude_columns = ['inserted_timestamp'],
unique_key = 'tx_hash',
cluster_by = ['modified_timestamp::date', '_partition_by_block_number'],
tags = ['load', 'load_shards', 'deprecated_lake_archive']
tags = ['load', 'load_shards', 'deprecated']
) }}
WITH chunks AS (

View File

@ -3,7 +3,7 @@
incremental_strategy = 'delete+insert',
unique_key = 'tx_hash',
cluster_by = ['block_timestamp::DATE','modified_timestamp::DATE', '_partition_by_block_number'],
tags = ['receipt_map', 'deprecated_lake_archive']
tags = ['receipt_map', 'deprecated']
) }}
WITH int_txs AS (

View File

@ -101,7 +101,7 @@ blocks AS (
{{ ref('silver__blocks_v2') }}
{% if var("MANUAL_FIX") %}
WHERE
{{ partition_load_manual('no_buffer', 'partition_key') }}
{{ partition_load_manual('end', 'partition_key') }}
{% else %}
{% if is_incremental() %}
WHERE block_timestamp :: DATE >= '{{min_bd}}' :: DATE

View File

@ -1,7 +1,8 @@
{{ config(
materialized = 'incremental',
unique_key = 'metadata_id',
incremental_strategy = 'delete+insert'
incremental_strategy = 'delete+insert',
tags = ['deprecated']
) }}
-- DEPRECATED
-- DELETE ALONGSIDE DEFI__DIM_NFT_SERIES_METADATA

View File

@ -2,7 +2,8 @@
materialized = 'incremental',
merge_exclude_columns = ["inserted_timestamp"],
unique_key = 'metadata_id',
incremental_strategy = 'merge'
incremental_strategy = 'merge',
tags = ['deprecated']
) }}
-- TODO Deprecate this model by 4/1/2025
WITH livequery_response AS (