This commit is contained in:
gregoriustanleyy 2025-06-09 19:27:13 +07:00
parent 6ed3da1a6f
commit 8a61959edc
4 changed files with 6 additions and 10 deletions

View File

@ -17,4 +17,4 @@ SELECT
FROM
{{ ref('silver__ft_contract_metadata') }}
WHERE
name is not null OR symbol is not null
name is not null OR symbol is not null OR decimals is not null

View File

@ -19,12 +19,8 @@ models:
description: "{{ doc('contract_address') }}"
- name: NAME
description: "{{ doc('name') }}"
tests:
- not_null
- name: SYMBOL
description: "{{ doc('symbol') }}"
tests:
- not_null
- name: DECIMALS
description: "{{ doc('decimals') }}"
- name: DIM_FT_CONTRACT_METADATA_ID

View File

@ -53,7 +53,7 @@ omni AS (
WHERE
o.modified_timestamp >= (
SELECT
MAX(o.modified_timestamp)
MAX(modified_timestamp)
FROM
{{ this }}
)
@ -86,7 +86,7 @@ omni_unmapped AS (
AND
o.modified_timestamp >= (
SELECT
MAX(o.modified_timestamp)
MAX(modified_timestamp)
FROM
{{ this }}
)
@ -109,7 +109,7 @@ defuse AS (
{% if is_incremental() %}
WHERE
modified_timestamp >= (
d.modified_timestamp >= (
SELECT
MAX(modified_timestamp)
FROM

View File

@ -1,9 +1,9 @@
{{ config (
materialized = "incremental",
incremental_strategy = 'merge',
incremental_predicates = ["dynamic_range_predicate","modified_timestamp::date"],
unique_key = "omni_tokenlist_id",
unique_key = "omni_asset_identifier",
cluster_by = ['modified_timestamp::DATE'],
post_hook = "ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(omni_asset_identifier);",
tags = ['streamline_non_core']
) }}