diff --git a/.github/workflows/dbt_test_daily.yml b/.github/workflows/dbt_test_daily.yml index f2963d6..1ddfbbd 100644 --- a/.github/workflows/dbt_test_daily.yml +++ b/.github/workflows/dbt_test_daily.yml @@ -8,7 +8,7 @@ on: env: DBT_PROFILES_DIR: ./ - + USE_VARS: "${{ vars.USE_VARS }}" ACCOUNT: "${{ secrets.ACCOUNT }}" ROLE: "${{ secrets.ROLE }}" USER: "${{ secrets.USER }}" diff --git a/.github/workflows/dbt_test_monthly.yml b/.github/workflows/dbt_test_monthly.yml index 51fcfb4..6ccbff6 100644 --- a/.github/workflows/dbt_test_monthly.yml +++ b/.github/workflows/dbt_test_monthly.yml @@ -8,7 +8,7 @@ on: env: DBT_PROFILES_DIR: ./ - + USE_VARS: "${{ vars.USE_VARS }}" ACCOUNT: "${{ secrets.ACCOUNT }}" ROLE: "${{ secrets.ROLE }}" USER: "${{ secrets.USER }}" diff --git a/.github/workflows/dbt_test_weekly.yml b/.github/workflows/dbt_test_weekly.yml index 44a5618..35ab6ff 100644 --- a/.github/workflows/dbt_test_weekly.yml +++ b/.github/workflows/dbt_test_weekly.yml @@ -8,7 +8,7 @@ on: env: DBT_PROFILES_DIR: ./ - + USE_VARS: "${{ vars.USE_VARS }}" ACCOUNT: "${{ secrets.ACCOUNT }}" ROLE: "${{ secrets.ROLE }}" USER: "${{ secrets.USER }}" diff --git a/models/gold/core/core__fact_accounts.yml b/models/gold/core/core__fact_accounts.yml index 2d8ce7f..c0a7583 100644 --- a/models/gold/core/core__fact_accounts.yml +++ b/models/gold/core/core__fact_accounts.yml @@ -10,13 +10,13 @@ models: - SEQUENCE_NUMBER - LEDGER_ENTRY_CHANGE - LAST_MODIFIED_LEDGER - where: closed_at > current_date - {{ var('test_days_threshold', 3) }} + where: modified_timestamp > current_date - {{ var('test_days_threshold', 3) }} columns: - name: ACCOUNT_ID description: "{{ doc('account_id') }}" tests: - not_null: - where: closed_at > current_date - {{ var('test_days_threshold', 3) }} + where: modified_timestamp > current_date - {{ var('test_days_threshold', 3) }} - name: BALANCE description: '{{ doc("balance") }}' @@ -31,7 +31,7 @@ models: description: '{{ doc("sequence_number") }}' tests: - not_null: - where: closed_at > current_date - {{ var('test_days_threshold', 3) }} + where: modified_timestamp > current_date - {{ var('test_days_threshold', 3) }} - name: NUM_SUBENTRIES description: '{{ doc("num_subentries") }}' @@ -61,19 +61,19 @@ models: description: '{{ doc("last_modified_ledger") }}' tests: - not_null: - where: closed_at > current_date - {{ var('test_days_threshold', 3) }} + where: modified_timestamp > current_date - {{ var('test_days_threshold', 3) }} - name: LEDGER_ENTRY_CHANGE description: '{{ doc("ledger_entry_change") }}' tests: - not_null: - where: closed_at > current_date - {{ var('test_days_threshold', 3) }} + where: modified_timestamp > current_date - {{ var('test_days_threshold', 3) }} - name: DELETED description: '{{ doc("deleted") }}' tests: - not_null: - where: closed_at > current_date - {{ var('test_days_threshold', 3) }} + where: modified_timestamp > current_date - {{ var('test_days_threshold', 3) }} - name: SPONSOR description: '{{ doc("sponsor") }}' @@ -88,7 +88,7 @@ models: description: '{{ doc("sequence_ledger") }}' tests: - not_null: - where: closed_at > current_date - {{ var('test_days_threshold', 3) }} + where: modified_timestamp > current_date - {{ var('test_days_threshold', 3) }} - name: SEQUENCE_TIME description: '{{ doc("sequence_time") }}' @@ -97,7 +97,7 @@ models: description: '{{ doc("closed_at") }}' tests: - not_null: - where: closed_at > current_date - {{ var('test_days_threshold', 3) }} + where: modified_timestamp > current_date - {{ var('test_days_threshold', 3) }} - name: BLOCK_TIMESTAMP description: '{{ doc("block_timestamp") }}' @@ -106,7 +106,7 @@ models: description: '{{ doc("ledger_sequence") }}' tests: - not_null: - where: closed_at > current_date - {{ var('test_days_threshold', 3) }} + where: modified_timestamp > current_date - {{ var('test_days_threshold', 3) }} - name: FACT_ACCOUNTS_ID description: '{{ doc("pk") }}' diff --git a/models/gold/core/core__fact_ledgers.yml b/models/gold/core/core__fact_ledgers.yml index d204d39..7d5e436 100644 --- a/models/gold/core/core__fact_ledgers.yml +++ b/models/gold/core/core__fact_ledgers.yml @@ -9,9 +9,9 @@ models: tests: - dbt_expectations.expect_column_to_exist - not_null: - where: closed_at > current_date - {{ var('test_days_threshold', 3) }} + where: modified_timestamp > current_date - {{ var('test_days_threshold', 3) }} - unique: - where: closed_at > current_date - {{ var('test_days_threshold', 3) }} + where: modified_timestamp > current_date - {{ var('test_days_threshold', 3) }} - name: LEDGER_HASH description: '{{ doc("ledger_hash") }}' @@ -29,7 +29,7 @@ models: description: '{{ doc("closed_at") }}' tests: - not_null: - where: closed_at > current_date - {{ var('test_days_threshold', 3) }} + where: modified_timestamp > current_date - {{ var('test_days_threshold', 3) }} - name: BLOCK_TIMESTAMP description: '{{ doc("block_timestamp") }}' diff --git a/models/gold/core/core__fact_operations.yml b/models/gold/core/core__fact_operations.yml index 1cca28a..63591b8 100644 --- a/models/gold/core/core__fact_operations.yml +++ b/models/gold/core/core__fact_operations.yml @@ -12,19 +12,19 @@ models: - LEDGER_SEQUENCE - TYPE - TYPE_STRING - where: closed_at > current_date - {{ var('test_days_threshold', 3) }} + where: modified_timestamp > current_date - {{ var('test_days_threshold', 3) }} columns: - name: ID description: '{{ doc("op_id") }}' tests: - not_null: - where: closed_at > current_date - {{ var('test_days_threshold', 3) }} + where: modified_timestamp > current_date - {{ var('test_days_threshold', 3) }} - name: CLOSED_AT description: '{{ doc("closed_at") }}' tests: - not_null: - where: closed_at > current_date - {{ var('test_days_threshold', 3) }} + where: modified_timestamp > current_date - {{ var('test_days_threshold', 3) }} - name: BLOCK_TIMESTAMP description: '{{ doc("block_timestamp") }}' @@ -264,7 +264,7 @@ models: description: '{{ doc("source_account") }}' tests: - not_null: - where: closed_at > current_date - {{ var('test_days_threshold', 3) }} + where: modified_timestamp > current_date - {{ var('test_days_threshold', 3) }} - name: OP_SOURCE_ACCOUNT_MUXED description: '{{ doc("op_source_account_muxed") }}' @@ -273,25 +273,25 @@ models: description: '{{ doc("transaction_id") }}' tests: - not_null: - where: closed_at > current_date - {{ var('test_days_threshold', 3) }} + where: modified_timestamp > current_date - {{ var('test_days_threshold', 3) }} - name: TYPE description: '{{ doc("type") }}' tests: - not_null: - where: closed_at > current_date - {{ var('test_days_threshold', 3) }} + where: modified_timestamp > current_date - {{ var('test_days_threshold', 3) }} - name: TYPE_STRING description: '{{ doc("type_string") }}' tests: - not_null: - where: closed_at > current_date - {{ var('test_days_threshold', 3) }} + where: modified_timestamp > current_date - {{ var('test_days_threshold', 3) }} - name: LEDGER_SEQUENCE description: '{{ doc("ledger_sequence") }}' tests: - not_null: - where: closed_at > current_date - {{ var('test_days_threshold', 3) }} + where: modified_timestamp > current_date - {{ var('test_days_threshold', 3) }} - name: OP_ACCOUNT_MUXED description: '{{ doc("account_muxed") }}' diff --git a/models/gold/core/core__fact_transactions.yml b/models/gold/core/core__fact_transactions.yml index 75b095d..aaa4938 100644 --- a/models/gold/core/core__fact_transactions.yml +++ b/models/gold/core/core__fact_transactions.yml @@ -9,9 +9,9 @@ models: description: Unique identifier for the transaction tests: - not_null: - where: closed_at > current_date - {{ var('test_days_threshold', 3) }} + where: modified_timestamp > current_date - {{ var('test_days_threshold', 3) }} - unique: - where: closed_at > current_date - {{ var('test_days_threshold', 3) }} + where: modified_timestamp > current_date - {{ var('test_days_threshold', 3) }} - name: TRANSACTION_HASH description: '{{ doc("transaction_hash") }}' @@ -20,13 +20,13 @@ models: description: '{{ doc("ledger_sequence") }}' tests: - not_null: - where: closed_at > current_date - {{ var('test_days_threshold', 3) }} + where: modified_timestamp > current_date - {{ var('test_days_threshold', 3) }} - name: CLOSED_AT description: '{{ doc("closed_at") }}' tests: - not_null: - where: closed_at > current_date - {{ var('test_days_threshold', 3) }} + where: modified_timestamp > current_date - {{ var('test_days_threshold', 3) }} - name: BLOCK_TIMESTAMP description: '{{ doc("block_timestamp") }}' @@ -35,7 +35,7 @@ models: description: '{{ doc("account") }}' tests: - not_null: - where: closed_at > current_date - {{ var('test_days_threshold', 3) }} + where: modified_timestamp > current_date - {{ var('test_days_threshold', 3) }} - name: ACCOUNT_SEQUENCE description: '{{ doc("account_sequence") }}' diff --git a/models/gold/defi/defi__fact_liquidity_pools.yml b/models/gold/defi/defi__fact_liquidity_pools.yml index 3b10b24..d64716d 100644 --- a/models/gold/defi/defi__fact_liquidity_pools.yml +++ b/models/gold/defi/defi__fact_liquidity_pools.yml @@ -10,7 +10,7 @@ models: description: '{{ doc("liquidity_pool_id") }}' tests: - not_null: - where: closed_at > current_date - {{ var('test_days_threshold', 3) }} + where: modified_timestamp > current_date - {{ var('test_days_threshold', 3) }} - name: TYPE description: '{{ doc("type") }}' @@ -76,7 +76,7 @@ models: description: '{{ doc("closed_at") }}' tests: - not_null: - where: closed_at > current_date - {{ var('test_days_threshold', 3) }} + where: modified_timestamp > current_date - {{ var('test_days_threshold', 3) }} - name: LEDGER_SEQUENCE description: '{{ doc("ledger_sequence") }}' diff --git a/models/gold/defi/defi__fact_trades.yml b/models/gold/defi/defi__fact_trades.yml index 445f1c3..f8e93ed 100644 --- a/models/gold/defi/defi__fact_trades.yml +++ b/models/gold/defi/defi__fact_trades.yml @@ -8,25 +8,25 @@ models: description: '{{ doc("history_operation_id") }}' tests: - not_null: - where: ledger_closed_at > current_date - {{ var('test_days_threshold', 3) }} + where: modified_timestamp > current_date - {{ var('test_days_threshold', 3) }} - name: trade_order description: '{{ doc("order") }}' tests: - not_null: - where: ledger_closed_at > current_date - {{ var('test_days_threshold', 3) }} + where: modified_timestamp > current_date - {{ var('test_days_threshold', 3) }} - name: ledger_closed_at description: '{{ doc("closed_at") }}' tests: - not_null: - where: ledger_closed_at > current_date - {{ var('test_days_threshold', 3) }} + where: modified_timestamp > current_date - {{ var('test_days_threshold', 3) }} - name: selling_account_address description: '{{ doc("selling_account_address") }}' tests: - not_null: - where: ledger_closed_at > current_date - {{ var('test_days_threshold', 3) }} + where: modified_timestamp > current_date - {{ var('test_days_threshold', 3) }} - name: selling_asset_code description: '{{ doc("selling_asset_code") }}' @@ -38,25 +38,25 @@ models: description: '{{ doc("selling_asset_type") }}' tests: - not_null: - where: ledger_closed_at > current_date - {{ var('test_days_threshold', 3) }} + where: modified_timestamp > current_date - {{ var('test_days_threshold', 3) }} - name: selling_asset_id description: '{{ doc("selling_asset_id") }}' tests: - not_null: - where: ledger_closed_at > current_date - {{ var('test_days_threshold', 3) }} + where: modified_timestamp > current_date - {{ var('test_days_threshold', 3) }} - name: selling_amount description: '{{ doc("selling_amount") }}' tests: - not_null: - where: ledger_closed_at > current_date - {{ var('test_days_threshold', 3) }} + where: modified_timestamp > current_date - {{ var('test_days_threshold', 3) }} - name: buying_account_address description: '{{ doc("buying_account_address") }}' tests: - not_null: - where: ledger_closed_at > current_date - {{ var('test_days_threshold', 3) }} + where: modified_timestamp > current_date - {{ var('test_days_threshold', 3) }} - name: buying_asset_code description: '{{ doc("buying_asset_code") }}' @@ -68,31 +68,31 @@ models: description: '{{ doc("buying_asset_type") }}' tests: - not_null: - where: ledger_closed_at > current_date - {{ var('test_days_threshold', 3) }} + where: modified_timestamp > current_date - {{ var('test_days_threshold', 3) }} - name: buying_asset_id description: '{{ doc("buying_asset_id") }}' tests: - not_null: - where: ledger_closed_at > current_date - {{ var('test_days_threshold', 3) }} + where: modified_timestamp > current_date - {{ var('test_days_threshold', 3) }} - name: buying_amount description: '{{ doc("buying_amount") }}' tests: - not_null: - where: ledger_closed_at > current_date - {{ var('test_days_threshold', 3) }} + where: modified_timestamp > current_date - {{ var('test_days_threshold', 3) }} - name: price_n description: '{{ doc("price_n") }}' tests: - not_null: - where: ledger_closed_at > current_date - {{ var('test_days_threshold', 3) }} + where: modified_timestamp > current_date - {{ var('test_days_threshold', 3) }} - name: price_d description: '{{ doc("price_d") }}' tests: - not_null: - where: ledger_closed_at > current_date - {{ var('test_days_threshold', 3) }} + where: modified_timestamp > current_date - {{ var('test_days_threshold', 3) }} - name: selling_offer_id description: '{{ doc("selling_offer_id") }}' @@ -110,7 +110,7 @@ models: description: '{{ doc("trade_type") }}' tests: - not_null: - where: ledger_closed_at > current_date - {{ var('test_days_threshold', 3) }} + where: modified_timestamp > current_date - {{ var('test_days_threshold', 3) }} - name: rounding_slippage description: '{{ doc("rounding_slippage") }}' @@ -120,29 +120,15 @@ models: - name: fact_trades_id description: '{{ doc("pk") }}' - tests: - - unique: - where: ledger_closed_at > current_date - {{ var('test_days_threshold', 3) }} - - not_null: - where: ledger_closed_at > current_date - {{ var('test_days_threshold', 3) }} - name: _inserted_timestamp description: '{{ doc("inserted_timestamp") }}' - tests: - - not_null: - where: ledger_closed_at > current_date - {{ var('test_days_threshold', 3) }} - name: inserted_timestamp description: '{{ doc("inserted_timestamp") }}' - tests: - - not_null: - where: ledger_closed_at > current_date - {{ var('test_days_threshold', 3) }} - name: modified_timestamp description: '{{ doc("modified_timestamp") }}' - tests: - - not_null: - where: ledger_closed_at > current_date - {{ var('test_days_threshold', 3) }} - name: _invocation_id description: '{{ doc("invocation_id") }}' diff --git a/models/gold/operations/core__ez_operations.yml b/models/gold/operations/core__ez_operations.yml index e12f39d..2bb838f 100644 --- a/models/gold/operations/core__ez_operations.yml +++ b/models/gold/operations/core__ez_operations.yml @@ -9,13 +9,13 @@ models: description: '{{ doc("op_id") }}' tests: - not_null: - where: closed_at > current_date - {{ var('test_days_threshold', 3) }} + where: modified_timestamp > current_date - {{ var('test_days_threshold', 3) }} - name: OP_SOURCE_ACCOUNT description: '{{ doc("op_source_account") }}' tests: - not_null: - where: closed_at > current_date - {{ var('test_days_threshold', 3) }} + where: modified_timestamp > current_date - {{ var('test_days_threshold', 3) }} - name: OP_SOURCE_ACCOUNT_MUXED description: '{{ doc("op_source_account_muxed") }}' @@ -312,19 +312,19 @@ models: description: '{{ doc("transaction_id") }}' tests: - not_null: - where: closed_at > current_date - {{ var('test_days_threshold', 3) }} + where: modified_timestamp > current_date - {{ var('test_days_threshold', 3) }} - name: TYPE description: '{{ doc("type") }}' tests: - not_null: - where: closed_at > current_date - {{ var('test_days_threshold', 3) }} + where: modified_timestamp > current_date - {{ var('test_days_threshold', 3) }} - name: TYPE_STRING description: '{{ doc("type_string") }}' tests: - not_null: - where: closed_at > current_date - {{ var('test_days_threshold', 3) }} + where: modified_timestamp > current_date - {{ var('test_days_threshold', 3) }} - name: BATCH_ID description: '{{ doc("batch_id") }}' @@ -372,7 +372,7 @@ models: description: '{{ doc("closed_at") }}' tests: - not_null: - where: closed_at > current_date - {{ var('test_days_threshold', 3) }} + where: modified_timestamp > current_date - {{ var('test_days_threshold', 3) }} - name: BLOCK_TIMESTAMP description: '{{ doc("block_timestamp") }}' @@ -384,7 +384,7 @@ models: description: '{{ doc("ledger_sequence") }}' tests: - not_null: - where: closed_at > current_date - {{ var('test_days_threshold', 3) }} + where: modified_timestamp > current_date - {{ var('test_days_threshold', 3) }} - name: TX_ACCOUNT description: '{{ doc("tx_account") }}' diff --git a/models/silver/silver__accounts.yml b/models/silver/silver__accounts.yml index 5ddce31..9bca5e9 100644 --- a/models/silver/silver__accounts.yml +++ b/models/silver/silver__accounts.yml @@ -7,7 +7,7 @@ models: description: "{{ doc('account_id') }}" tests: - not_null: - where: closed_at > current_date - {{ var('test_days_threshold', 3) }} + where: modified_timestamp > current_date - {{ var('test_days_threshold', 3) }} - dbt_expectations.expect_column_values_to_be_in_type_list: column_type_list: - VARCHAR @@ -15,7 +15,7 @@ models: description: "{{ doc('sequence_number') }}" tests: - not_null: - where: closed_at > current_date - {{ var('test_days_threshold', 3) }} + where: modified_timestamp > current_date - {{ var('test_days_threshold', 3) }} - dbt_expectations.expect_column_values_to_be_in_type_list: column_type_list: - NUMBER @@ -23,7 +23,7 @@ models: description: "{{ doc('ledger_entry_change') }}" tests: - not_null: - where: closed_at > current_date - {{ var('test_days_threshold', 3) }} + where: modified_timestamp > current_date - {{ var('test_days_threshold', 3) }} - dbt_expectations.expect_column_values_to_be_in_type_list: column_type_list: - NUMBER @@ -31,7 +31,7 @@ models: description: "{{ doc('last_modified_ledger') }}" tests: - not_null: - where: closed_at > current_date - {{ var('test_days_threshold', 3) }} + where: modified_timestamp > current_date - {{ var('test_days_threshold', 3) }} - dbt_expectations.expect_column_values_to_be_in_type_list: column_type_list: - NUMBER diff --git a/models/silver/silver__liquidity_pools.yml b/models/silver/silver__liquidity_pools.yml index 1934c3f..c41b5e8 100644 --- a/models/silver/silver__liquidity_pools.yml +++ b/models/silver/silver__liquidity_pools.yml @@ -1,13 +1,13 @@ version: 2 models: - name: silver__liquidity_pools - + columns: - name: LIQUIDITY_POOL_ID description: "{{ doc('liquidity_pool_id') }}" tests: - not_null: - where: closed_at > current_date - {{ var('test_days_threshold', 3) }} + where: modified_timestamp > current_date - {{ var('test_days_threshold', 3) }} - dbt_expectations.expect_column_values_to_be_in_type_list: column_type_list: - VARCHAR @@ -15,7 +15,7 @@ models: description: "{{ doc('ledger_entry_change') }}" tests: - not_null: - where: closed_at > current_date - {{ var('test_days_threshold', 3) }} + where: modified_timestamp > current_date - {{ var('test_days_threshold', 3) }} - dbt_expectations.expect_column_values_to_be_in_type_list: column_type_list: - NUMBER @@ -23,7 +23,7 @@ models: description: "{{ doc('last_modified_ledger') }}" tests: - not_null: - where: closed_at > current_date - {{ var('test_days_threshold', 3) }} + where: modified_timestamp > current_date - {{ var('test_days_threshold', 3) }} - dbt_expectations.expect_column_values_to_be_in_type_list: column_type_list: - NUMBER \ No newline at end of file diff --git a/models/silver/silver__operations.yml b/models/silver/silver__operations.yml index 72e8b79..9455124 100644 --- a/models/silver/silver__operations.yml +++ b/models/silver/silver__operations.yml @@ -7,7 +7,7 @@ models: description: "{{ doc('id') }}" tests: - not_null: - where: closed_at > current_date - {{ var('test_days_threshold', 3) }} + where: modified_timestamp > current_date - {{ var('test_days_threshold', 3) }} - dbt_expectations.expect_column_values_to_be_in_type_list: column_type_list: - NUMBER @@ -15,7 +15,7 @@ models: description: "{{ doc('source_account') }}" tests: - not_null: - where: closed_at > current_date - {{ var('test_days_threshold', 3) }} + where: modified_timestamp > current_date - {{ var('test_days_threshold', 3) }} - dbt_expectations.expect_column_values_to_be_in_type_list: column_type_list: - VARCHAR @@ -23,7 +23,7 @@ models: description: "{{ doc('transaction_id') }}" tests: - not_null: - where: closed_at > current_date - {{ var('test_days_threshold', 3) }} + where: modified_timestamp > current_date - {{ var('test_days_threshold', 3) }} - dbt_expectations.expect_column_values_to_be_in_type_list: column_type_list: - NUMBER @@ -31,7 +31,7 @@ models: description: "{{ doc('ledger_sequence') }}" tests: - not_null: - where: closed_at > current_date - {{ var('test_days_threshold', 3) }} + where: modified_timestamp > current_date - {{ var('test_days_threshold', 3) }} - dbt_expectations.expect_column_values_to_be_in_type_list: column_type_list: - NUMBER @@ -39,7 +39,7 @@ models: description: "{{ doc('type') }}" tests: - not_null: - where: closed_at > current_date - {{ var('test_days_threshold', 3) }} + where: modified_timestamp > current_date - {{ var('test_days_threshold', 3) }} - dbt_expectations.expect_column_values_to_be_in_type_list: column_type_list: - NUMBER @@ -47,7 +47,7 @@ models: description: "{{ doc('type_string') }}" tests: - not_null: - where: closed_at > current_date - {{ var('test_days_threshold', 3) }} + where: modified_timestamp > current_date - {{ var('test_days_threshold', 3) }} - dbt_expectations.expect_column_values_to_be_in_type_list: column_type_list: - VARCHAR \ No newline at end of file diff --git a/models/silver/silver__trades.yml b/models/silver/silver__trades.yml index e38d849..844716e 100644 --- a/models/silver/silver__trades.yml +++ b/models/silver/silver__trades.yml @@ -7,7 +7,7 @@ models: description: "{{ doc('history_operation_id') }}" tests: - not_null: - where: ledger_closed_at > current_date - {{ var('test_days_threshold', 3) }} + where: modified_timestamp > current_date - {{ var('test_days_threshold', 3) }} - dbt_expectations.expect_column_values_to_be_in_type_list: column_type_list: - NUMBER @@ -15,7 +15,7 @@ models: description: "{{ doc('order') }}" tests: - not_null: - where: ledger_closed_at > current_date - {{ var('test_days_threshold', 3) }} + where: modified_timestamp > current_date - {{ var('test_days_threshold', 3) }} - dbt_expectations.expect_column_values_to_be_in_type_list: column_type_list: - NUMBER \ No newline at end of file diff --git a/models/silver/silver__transactions.yml b/models/silver/silver__transactions.yml index 64417b7..6284578 100644 --- a/models/silver/silver__transactions.yml +++ b/models/silver/silver__transactions.yml @@ -6,9 +6,9 @@ models: description: "{{ doc('id') }}" tests: - not_null: - where: closed_at > current_date - {{ var('test_days_threshold', 3) }} + where: modified_timestamp > current_date - {{ var('test_days_threshold', 3) }} - unique: - where: closed_at > current_date - {{ var('test_days_threshold', 3) }} + where: modified_timestamp > current_date - {{ var('test_days_threshold', 3) }} - dbt_expectations.expect_column_values_to_be_in_type_list: column_type_list: - NUMBER \ No newline at end of file