mirror of
https://github.com/FlipsideCrypto/near-models.git
synced 2026-02-06 13:56:44 +00:00
changes
This commit is contained in:
parent
6ed3da1a6f
commit
8a61959edc
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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']
|
||||
) }}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user