This commit is contained in:
Eric Laurello 2024-10-12 00:26:09 -04:00
parent 6434a6118a
commit e3643cd1aa
5 changed files with 5 additions and 5 deletions

View File

@ -1,6 +1,6 @@
{{ config(
materialized = 'incremental',
incremental_predicates = ['COALESCE(DBT_INTERNAL_DEST.block_timestamp::DATE,'2099-12-31') >= (select min(block_timestamp::DATE -3) from ' ~ generate_tmp_view_name(this) ~ ')'],
incremental_predicates = ["COALESCE(DBT_INTERNAL_DEST.block_timestamp::DATE,'2099-12-31') >= (select min(block_timestamp::DATE - 3) from " ~ generate_tmp_view_name(this) ~ ")"],
unique_key = ["tx_id","msg_index","attribute_index"],
incremental_strategy = 'merge',
cluster_by = ['block_timestamp::DATE','_inserted_timestamp::DATE'],

View File

@ -1,6 +1,6 @@
{{ config(
materialized = 'incremental',
incremental_predicates = ['COALESCE(DBT_INTERNAL_DEST.block_timestamp::DATE,'2099-12-31') >= (select min(block_timestamp::DATE -3) from ' ~ generate_tmp_view_name(this) ~ ')'],
incremental_predicates = ["COALESCE(DBT_INTERNAL_DEST.block_timestamp::DATE,'2099-12-31') >= (select min(block_timestamp::DATE - 3) from " ~ generate_tmp_view_name(this) ~ ")"],
unique_key = ["tx_id","msg_index"],
incremental_strategy = 'merge',
merge_exclude_columns = ["inserted_timestamp"],

View File

@ -1,6 +1,6 @@
{{ config(
materialized = 'incremental',
incremental_predicates = ["COALESCE(DBT_INTERNAL_DEST.block_timestamp::DATE,'2099-12-31') >= (select min(block_timestamp::DATE) from " ~ generate_tmp_view_name(this) ~ ")"],
incremental_predicates = ["COALESCE(DBT_INTERNAL_DEST.block_timestamp::DATE,'2099-12-31') >= (select min(block_timestamp::DATE - 3) from " ~ generate_tmp_view_name(this) ~ ")"],
unique_key = "_unique_key",
incremental_strategy = 'merge',
merge_exclude_columns = ["inserted_timestamp"],

View File

@ -1,6 +1,6 @@
{{ config(
materialized = 'incremental',
incremental_predicates = ['COALESCE(DBT_INTERNAL_DEST.block_timestamp::DATE,'2099-12-31') >= (select min(block_timestamp::DATE -3) from ' ~ generate_tmp_view_name(this) ~ ')'],
incremental_predicates = ["COALESCE(DBT_INTERNAL_DEST.block_timestamp::DATE,'2099-12-31') >= (select min(block_timestamp::DATE - 3) from " ~ generate_tmp_view_name(this) ~ ")"],
unique_key = "tx_id",
incremental_strategy = 'merge',
merge_exclude_columns = ["inserted_timestamp"],

View File

@ -1,6 +1,6 @@
{{ config(
materialized = 'incremental',
incremental_predicates = ['COALESCE(DBT_INTERNAL_DEST.block_timestamp::DATE,'2099-12-31') >= (select min(block_timestamp::DATE -3) from ' ~ generate_tmp_view_name(this) ~ ')'],
incremental_predicates = ["COALESCE(DBT_INTERNAL_DEST.block_timestamp::DATE,'2099-12-31') >= (select min(block_timestamp::DATE - 3) from " ~ generate_tmp_view_name(this) ~ ")"],
unique_key = "tx_id",
incremental_strategy = 'merge',
merge_exclude_columns = ["inserted_timestamp"],