Merge pull request #434 from FlipsideCrypto/tag-supply

Tag supply model with scheduled_core
This commit is contained in:
Jack Forgash 2025-03-25 09:31:56 -06:00 committed by GitHub
commit fae117661d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 8 additions and 14 deletions

View File

@ -8,7 +8,7 @@
}
}
},
tags = ['atlas']
tags = ['atlas', 'scheduled_core']
) }}
WITH supply AS (

View File

@ -2,7 +2,7 @@
materialized = "table",
cluster_by = ["utc_date"],
unique_key = "atlas_supply_id",
tags = ['atlas']
tags = ['atlas', 'scheduled_core']
) }}
WITH daily_lockup_locked_balances AS (

View File

@ -2,7 +2,7 @@
materialized = "table",
cluster_by = ["utc_date"],
unique_key = "atlas_daily_lockup_locked_balances_id",
tags = ['atlas', 'atlas_supply']
tags = ['atlas', 'scheduled_core']
) }}
WITH lockup_receipts AS (

View File

@ -2,7 +2,7 @@
materialized = "table",
cluster_by = ["utc_date"],
unique_key = "atlas_daily_lockup_staking_balances_id",
tags = ['atlas', 'atlas_supply']
tags = ['atlas', 'scheduled_core']
) }}
WITH lockup_receipts AS (

View File

@ -3,7 +3,7 @@
cluster_by = ["utc_date"],
unique_key = "atlas_daily_staked_supply_id",
merge_exclude_columns = ["inserted_timestamp"],
tags = ['atlas', 'atlas_supply'],
tags = ['atlas', 'scheduled_core'],
enabled = False
) }}

View File

@ -2,7 +2,7 @@
materialized = "table",
cluster_by = ["epoch_id"],
unique_key = "atlas_epochs_id",
tags = ['atlas']
tags = ['atlas', 'scheduled_core']
) }}
WITH blocks AS (
@ -16,15 +16,9 @@ WITH blocks AS (
_partition_by_block_number
FROM
{{ ref('silver__blocks_final') }}
{% if var("MANUAL_FIX") %}
WHERE {{ partition_load_manual('no_buffer') }}
{% else %}
WHERE modified_timestamp >= (
SELECT
MAX(modified_timestamp)
FROM
{{ this }}
)
{% endif %}
),
epochs AS (

View File

@ -5,7 +5,7 @@
merge_exclude_columns = ["inserted_timestamp"],
incremental_strategy = "merge",
incremental_predicates = ["dynamic_range_predicate_custom","block_timestamp::date"],
tags = ['atlas']
tags = ['atlas', 'scheduled_core']
) }}
WITH receipts AS (