diff --git a/models/silver/nft/sales/silver__zeroex_sales.sql b/models/silver/nft/sales/silver__zeroex_sales.sql index 3ca6fc83..9526349f 100644 --- a/models/silver/nft/sales/silver__zeroex_sales.sql +++ b/models/silver/nft/sales/silver__zeroex_sales.sql @@ -84,6 +84,7 @@ AND _inserted_timestamp >= ( FROM {{ this }} ) +and _inserted_timestamp >= dateadd('day', -14, current_date()) {% endif %} ), token_transfers_raw AS ( @@ -124,6 +125,7 @@ AND _inserted_timestamp >= ( FROM {{ this }} ) +and _inserted_timestamp >= dateadd('day', -14, current_date()) {% endif %} ), logs_token_raw AS ( @@ -187,6 +189,7 @@ AND _inserted_timestamp >= ( FROM {{ this }} ) +and _inserted_timestamp >= dateadd('day', -14, current_date()) {% endif %} ), logs_eth_raw AS ( @@ -330,6 +333,7 @@ AND _inserted_timestamp >= ( FROM {{ this }} ) +and _inserted_timestamp >= dateadd('day', -14, current_date()) {% endif %} ) SELECT diff --git a/models/silver/nft/sales/silver__zeroex_sales.yml b/models/silver/nft/sales/silver__zeroex_sales.yml index fa3dfa5a..491ee04e 100644 --- a/models/silver/nft/sales/silver__zeroex_sales.yml +++ b/models/silver/nft/sales/silver__zeroex_sales.yml @@ -97,9 +97,6 @@ models: - name: _INSERTED_TIMESTAMP tests: - not_null - - dbt_expectations.expect_row_values_to_have_recent_data: - datepart: day - interval: 90 - dbt_expectations.expect_column_values_to_be_in_type_list: column_type_list: - TIMESTAMP_LTZ