fix config block

This commit is contained in:
jacksan 2025-05-06 17:43:20 -06:00
parent 491e182db5
commit fad0ea0649
2 changed files with 13 additions and 4 deletions

View File

@ -1,8 +1,13 @@
{{ config(
materialized = 'view',
secure = false,
meta ={ 'database_tags':{ 'table':{ 'PURPOSE': 'DEFI, SWAPS' }} },
tags = ['scheduled_non_core']
materialized = 'incremental',
incremental_strategy = 'merge',
incremental_predicates = ["dynamic_range_predicate_custom","block_timestamp::date"],
merge_exclude_columns = ["inserted_timestamp"],
unique_key = 'ez_dex_swaps_id',
cluster_by = ['block_timestamp::DATE'],
post_hook = "ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(tx_hash,receipt_object_id,receiver_id,signer_id,token_out,token_in);",
tags = ['scheduled_non_core'],
meta ={ 'database_tags':{ 'table':{ 'PURPOSE': 'DEFI, SWAPS' }} }
) }}
-- depends on {{ ref('silver__dex_swaps_v2') }}

View File

@ -8,6 +8,10 @@
post_hook = "ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(tx_hash,receipt_id);",
tags = ['scheduled_non_core']
) }}
-- depends on {{ ref('defi__fact_intents') }}
-- depends on {{ ref('silver__defuse_tokens_metadata') }}
-- depends on {{ ref('silver__ft_contract_metadata') }}
-- depends on {{ ref('price__ez_prices_hourly') }}
{% if execute %}