update incremental due to null timestamps (#51)

This commit is contained in:
tarikceric 2025-02-17 15:04:43 -08:00 committed by GitHub
parent 9c815373ad
commit bc241be22a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -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']

View File

@ -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: