mirror of
https://github.com/FlipsideCrypto/eclipse-models.git
synced 2026-02-06 17:26:49 +00:00
update incremental due to null timestamps (#51)
This commit is contained in:
parent
9c815373ad
commit
bc241be22a
@ -3,7 +3,7 @@
|
||||
{{ config(
|
||||
materialized = 'incremental',
|
||||
unique_key = "tx_id",
|
||||
incremental_predicates = ["dynamic_range_predicate", "block_timestamp::date"],
|
||||
incremental_predicates = ["COALESCE(DBT_INTERNAL_DEST.block_timestamp::DATE,'2099-01-01') >= (select min(block_timestamp::DATE) from " ~ generate_tmp_view_name(this) ~ ")"],
|
||||
cluster_by = ['block_timestamp::DATE','_inserted_timestamp::DATE'],
|
||||
merge_exclude_columns = ["inserted_timestamp"],
|
||||
tags = ['scheduled_core']
|
||||
|
||||
@ -28,7 +28,7 @@ models:
|
||||
- unique:
|
||||
config:
|
||||
where: >
|
||||
block_timestamp::date > current_date - 30
|
||||
_inserted_timestamp::date >= current_date - 7
|
||||
- name: INDEX
|
||||
description: "{{ doc('tx_index') }}"
|
||||
tests:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user