Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ models:
- name: int_reflector_prices__cex
description: '{{ doc("int_reflector_prices__cex") }}'
tests:
- dbt_utils.recency:
- recency:
tags: [recency]
datepart: day
field: day
interval: 2
timestamp_val: '{{ var("batch_end_date") }}'
ignore_time_component: true
config:
enabled: '{{ target.name == "ci" or var("is_recency_airflow_task") == "true" }}'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ models:
- name: int_reflector_prices__fex
description: '{{ doc("int_reflector_prices__fex") }}'
tests:
- dbt_utils.recency:
- recency:
tags: [recency]
datepart: day
field: day
interval: 2
timestamp_val: '{{ var("batch_end_date") }}'
ignore_time_component: true
config:
enabled: '{{ target.name == "ci" or var("is_recency_airflow_task") == "true" }}'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ models:
- name: int_reflector_prices__sdex
description: '{{ doc("int_reflector_prices__sdex") }}'
tests:
- dbt_utils.recency:
- recency:
tags: [recency]
datepart: day
field: day
interval: 2
timestamp_val: '{{ var("batch_end_date") }}'
ignore_time_component: true
config:
enabled: '{{ target.name == "ci" or var("is_recency_airflow_task") == "true" }}'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ models:
- name: account_balances__daily_agg
description: '{{ doc("account_balances__daily_agg") }}'
tests:
- dbt_utils.recency:
- recency:
tags: [recency]
datepart: day
field: day
interval: 2
timestamp_val: '{{ var("batch_end_date") }}'
config:
# enabled: '{{ target.name == "ci" or var("is_recency_airflow_task") == "true" }}'
enabled: false
Expand Down
3 changes: 2 additions & 1 deletion models/marts/asset_balances/asset_balances__daily_agg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ models:
- name: asset_balances__daily_agg
description: '{{ doc("asset_balances__daily_agg") }}'
tests:
- dbt_utils.recency:
- recency:
tags: [recency]
datepart: day
field: cast(day as timestamp)
interval: 2
timestamp_val: '{{ var("batch_end_date") }}'
config:
enabled: '{{ target.name == "ci" or var("is_recency_airflow_task") == "true" }}'
severity: '{{ "error" if target.name == "prod" else "warn" }}'
Expand Down
3 changes: 2 additions & 1 deletion models/marts/daily_fee_stats_agg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ models:
- name: daily_fee_stats_agg
description: '{{ doc("daily_fee_stats") }}'
tests:
- dbt_utils.recency:
- recency:
tags: [recency]
datepart: day
field: cast(day_agg as timestamp)
interval: 2
timestamp_val: '{{ var("batch_end_date") }}'
config:
enabled: '{{ target.name == "ci" or var("is_recency_airflow_task") == "true" }}'
severity: '{{ "error" if target.name == "prod" else "warn" }}'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ models:
- name: enriched_history_operations
description: Aggregate table for the history operations
tests:
- dbt_utils.recency:
- recency:
tags: [recency]
datepart: hour
field: closed_at
interval: 12
timestamp_val: '{{ var("batch_end_date") }}'
config:
enabled: '{{ target.name == "ci" or var("is_recency_airflow_task") == "true" }}'
severity: '{{ "error" if target.name == "prod" else "warn" }}'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ models:
- name: enriched_history_operations_soroban
description: Aggregate table for the history operations, taking only the soroban operations
tests:
- dbt_utils.recency:
- recency:
tags: [recency]
datepart: hour
field: closed_at
interval: 12
timestamp_val: '{{ var("batch_end_date") }}'
config:
enabled: '{{ target.name == "ci" or var("is_recency_airflow_task") == "true" }}'
severity: '{{ "error" if target.name == "prod" else "warn" }}'
Expand Down
3 changes: 2 additions & 1 deletion models/marts/evicted_keys.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ models:
- name: evicted_keys
description: '{{ doc("evicted_keys") }}'
tests:
- dbt_utils.recency:
- recency:
tags: [recency]
datepart: day
field: closed_at
interval: 2
timestamp_val: '{{ var("batch_end_date") }}'
config:
enabled: '{{ target.name == "ci" or var("is_recency_airflow_task") == "true" }}'
severity: '{{ "error" if target.name == "prod" else "warn" }}'
Expand Down
3 changes: 2 additions & 1 deletion models/marts/fee_stats_agg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ models:
- name: fee_stats_agg
description: '{{ doc("fee_stats") }}'
tests:
- dbt_utils.recency:
- recency:
tags: [recency]
datepart: day
field: cast(day_agg as timestamp)
interval: 2
timestamp_val: '{{ var("batch_end_date") }}'
config:
enabled: '{{ target.name == "ci" or var("is_recency_airflow_task") == "true" }}'
severity: '{{ "error" if target.name == "prod" else "warn" }}'
Expand Down
3 changes: 2 additions & 1 deletion models/marts/history_assets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ models:
- name: history_assets
description: '{{ doc("history_assets") }}'
tests:
- dbt_utils.recency:
- recency:
tags: [recency]
datepart: day
field: cast(batch_run_date as timestamp)
interval: 2
timestamp_val: '{{ var("batch_end_date") }}'
config:
enabled: '{{ target.name == "ci" or var("is_recency_airflow_task") == "true" }}'
severity: '{{ "error" if target.name == "prod" else "warn" }}'
Expand Down
3 changes: 2 additions & 1 deletion models/marts/hourly_fee_agg_account.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ models:
- name: hourly_fee_agg_account
description: '{{ doc("hourly_fee_agg_account") }}'
tests:
- dbt_utils.recency:
- recency:
tags: [recency]
datepart: hour
field: hour_agg
interval: 6
timestamp_val: '{{ var("batch_end_date") }}'
config:
enabled: '{{ target.name == "ci" or var("is_recency_airflow_task") == "true" }}'
severity: '{{ "error" if target.name == "prod" else "warn" }}'
Expand Down
3 changes: 2 additions & 1 deletion models/marts/hourly_soroban_fee_agg_contract.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ models:
- name: hourly_soroban_fee_agg_contract
description: '{{ doc("hourly_soroban_fee_agg_contract") }}'
tests:
- dbt_utils.recency:
- recency:
tags: [recency]
datepart: hour
field: hour_agg
interval: 6
timestamp_val: '{{ var("batch_end_date") }}'
config:
enabled: '{{ target.name == "ci" or var("is_recency_airflow_task") == "true" }}'
severity: '{{ "error" if target.name == "prod" else "warn" }}'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ models:
- name: account_signers_current
description: '{{ doc("account_signers_current") }}'
tests:
- dbt_utils.recency:
- recency:
tags: [recency]
datepart: hour
field: closed_at
interval: '{{ 12 if target.name == "prod" else 24 }}'
timestamp_val: '{{ var("batch_end_date") }}'
config:
enabled: '{{ target.name == "ci" or var("is_recency_airflow_task") == "true" }}'
severity: '{{ "error" if target.name == "prod" else "warn" }}'
Expand Down
3 changes: 2 additions & 1 deletion models/marts/ledger_current_state/accounts_current.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ models:
- name: accounts_current
description: '{{ doc("accounts_current") }}'
tests:
- dbt_utils.recency:
- recency:
tags: [recency]
datepart: hour
field: closed_at
interval: '{{ 12 if target.name == "prod" else 24 }}'
timestamp_val: '{{ var("batch_end_date") }}'
config:
enabled: '{{ target.name == "ci" or var("is_recency_airflow_task") == "true" }}'
severity: '{{ "error" if target.name == "prod" else "warn" }}'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ models:
- name: claimable_balances_current
description: '{{ doc("claimable_balances_current") }}'
tests:
- dbt_utils.recency:
- recency:
tags: [recency]
datepart: hour
field: closed_at
interval: '{{ 12 if target.name == "prod" else 48 }}'
timestamp_val: '{{ var("batch_end_date") }}'
config:
enabled: '{{ target.name == "ci" or var("is_recency_airflow_task") == "true" }}'
severity: '{{ "error" if target.name == "prod" else "warn" }}'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ models:
- name: contract_code_current
description: '{{ doc("contract_code_current") }}'
tests:
- dbt_utils.recency:
- recency:
tags: [recency]
datepart: day
field: closed_at
interval: '{{ 7 if target.name == "prod" else 14 }}'
timestamp_val: '{{ var("batch_end_date") }}'
config:
enabled: '{{ target.name == "ci" or var("is_recency_airflow_task") == "true" }}'
severity: '{{ "error" if target.name == "prod" else "warn" }}'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ models:
- name: contract_data_current
description: '{{ doc("contract_data_current") }}'
tests:
- dbt_utils.recency:
- recency:
tags: [recency]
datepart: hour
field: closed_at
interval: '{{ 12 if target.name == "prod" else 24 }}'
timestamp_val: '{{ var("batch_end_date") }}'
config:
enabled: '{{ target.name == "ci" or var("is_recency_airflow_task") == "true" }}'
severity: '{{ "error" if target.name == "prod" else "warn" }}'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ models:
- name: liquidity_pools_current
description: '{{ doc("liquidity_pools_current") }}'
tests:
- dbt_utils.recency:
- recency:
tags: [recency]
datepart: hour
field: closed_at
interval: '{{ 24 if target.name == "prod" else 336 }}'
timestamp_val: '{{ var("batch_end_date") }}'
config:
enabled: '{{ target.name == "ci" or var("is_recency_airflow_task") == "true" }}'
severity: '{{ "error" if target.name == "prod" else "warn" }}'
Expand Down
3 changes: 2 additions & 1 deletion models/marts/ledger_current_state/offers_current.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ models:
- name: offers_current
description: '{{ doc("offers_current") }}'
tests:
- dbt_utils.recency:
- recency:
tags: [recency]
datepart: hour
field: closed_at
interval: '{{ 12 if target.name == "prod" else 24 }}'
timestamp_val: '{{ var("batch_end_date") }}'
config:
enabled: '{{ target.name == "ci" or var("is_recency_airflow_task") == "true" }}'
severity: '{{ "error" if target.name == "prod" else "warn" }}'
Expand Down
3 changes: 2 additions & 1 deletion models/marts/ledger_current_state/trust_lines_current.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ models:
- name: trust_lines_current
description: '{{ doc("trust_lines_current") }}'
tests:
- dbt_utils.recency:
- recency:
tags: [recency]
datepart: hour
field: closed_at
interval: '{{ 12 if target.name == "prod" else 24 }}'
timestamp_val: '{{ var("batch_end_date") }}'
config:
enabled: '{{ target.name == "ci" or var("is_recency_airflow_task") == "true" }}'
severity: '{{ "error" if target.name == "prod" else "warn" }}'
Expand Down
3 changes: 2 additions & 1 deletion models/marts/ledger_current_state/ttl_current.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ models:
- name: ttl_current
description: '{{ doc("ttl_current") }}'
tests:
- dbt_utils.recency:
- recency:
tags: [recency]
datepart: hour
field: closed_at
interval: '{{ 12 if target.name == "prod" else 24 }}'
timestamp_val: '{{ var("batch_end_date") }}'
config:
enabled: '{{ target.name == "ci" or var("is_recency_airflow_task") == "true" }}'
severity: '{{ "error" if target.name == "prod" else "warn" }}'
Expand Down
3 changes: 2 additions & 1 deletion models/marts/ledger_fee_stats_agg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ models:
- name: ledger_fee_stats_agg
description: '{{ doc("ledger_fee_stats") }}'
tests:
- dbt_utils.recency:
- recency:
tags: [recency]
datepart: day
field: cast(day_agg as timestamp)
interval: 2
timestamp_val: '{{ var("batch_end_date") }}'
config:
enabled: '{{ target.name == "ci" or var("is_recency_airflow_task") == "true" }}'
severity: '{{ "error" if target.name == "prod" else "warn" }}'
Expand Down
3 changes: 2 additions & 1 deletion models/marts/tokens/transfers/token_transfers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ models:
- name: token_transfers
description: "Curated and enriched token transfer events across the entire Stellar network"
tests:
- dbt_utils.recency:
- recency:
tags: [recency]
datepart: day
field: closed_at
interval: 1
timestamp_val: '{{ var("batch_end_date") }}'
ignore_time_component: true
config:
enabled: '{{ target.name == "ci" or var("is_recency_airflow_task") == "true" }}'
Expand Down
3 changes: 2 additions & 1 deletion models/marts/trade_agg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ models:
- name: trade_agg
description: '{{ doc("trade_agg") }}'
tests:
- dbt_utils.recency:
- recency:
tags: [recency]
datepart: day
field: cast(day_agg as timestamp)
interval: 2
timestamp_val: '{{ var("batch_end_date") }}'
config:
enabled: '{{ target.name == "ci" or var("is_recency_airflow_task") == "true" }}'
severity: '{{ "error" if target.name == "prod" else "warn" }}'
Expand Down
3 changes: 2 additions & 1 deletion models/marts/tvl/tvl_agg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@ models:
tags: [schema_changes]
config:
severity: warn
- dbt_utils.recency:
- recency:
tags: [recency]
datepart: day
field: day
interval: 2
timestamp_val: '{{ var("batch_end_date") }}'
ignore_time_component: true
config:
enabled: '{{ target.name == "ci" or var("is_recency_airflow_task") == "true" }}'
Expand Down
3 changes: 2 additions & 1 deletion models/snapshots/accounts_snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ models:
- name: accounts_snapshot
description: '{{ doc("accounts_snapshot") }}'
tests:
- dbt_utils.recency:
- recency:
tags: [recency]
datepart: day
field: cast(closed_at as timestamp)
interval: 2
timestamp_val: '{{ var("batch_end_date") }}'
config:
enabled: '{{ target.name == "ci" or var("is_recency_airflow_task") == "true" }}'
severity: '{{ "error" if target.name == "prod" else "warn" }}'
Expand Down
3 changes: 2 additions & 1 deletion models/snapshots/contract_data_snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ models:
- name: contract_data_snapshot
description: '{{ doc("contract_data_snapshot") }}'
tests:
- dbt_utils.recency:
- recency:
tags: [recency]
datepart: day
field: cast(closed_at as timestamp)
interval: 2
timestamp_val: '{{ var("batch_end_date") }}'
config:
enabled: '{{ target.name == "ci" or var("is_recency_airflow_task") == "true" }}'
severity: '{{ "error" if target.name == "prod" else "warn" }}'
Expand Down
Loading
Loading