Skip to content

Commit

Permalink
Add recency tag
Browse files Browse the repository at this point in the history
  • Loading branch information
amishas157 committed Sep 20, 2024
1 parent bfa1997 commit 9de1ecb
Show file tree
Hide file tree
Showing 14 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions dbt_project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ vars:

airflow_start_timestamp: "{{ env_var('AIRFLOW_START_TIMESTAMP', '2000-01-01') }}"
is_singular_airflow_task: "{{ env_var('IS_SINGULAR_AIRFLOW_TASK', 'false') }}"
is_recency_airflow_task: "{{ env_var('IS_RECENCY_AIRFLOW_TASK', 'false') }}"

# Configuring models
# Full documentation: https://docs.getdbt.com/docs/configuring-models
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ models:
description: Aggregate table for the history operations
tests:
- dbt_utils.recency:
tags: [recency]
datepart: hour
field: closed_at
interval: 12
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ models:
description: Aggregate table for the history operations, taking only the soroban operations
tests:
- dbt_utils.recency:
tags: [recency]
datepart: hour
field: closed_at
interval: 12
Expand Down
1 change: 1 addition & 0 deletions models/marts/fee_stats_agg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ models:
description: '{{ doc("fee_stats") }}'
tests:
- dbt_utils.recency:
tags: [recency]
datepart: day
field: cast(day_agg as timestamp)
interval: 2
Expand Down
1 change: 1 addition & 0 deletions models/marts/history_assets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ models:
description: '{{ doc("history_assets") }}'
tests:
- dbt_utils.recency:
tags: [recency]
datepart: day
field: cast(batch_run_date as timestamp)
interval: 2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ models:
description: '{{ doc("account_signers_current") }}'
tests:
- dbt_utils.recency:
tags: [recency]
datepart: hour
field: closed_at
interval: 12
Expand Down
1 change: 1 addition & 0 deletions models/marts/ledger_current_state/accounts_current.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ models:
description: '{{ doc("accounts_current") }}'
tests:
- dbt_utils.recency:
tags: [recency]
datepart: hour
field: closed_at
interval: 12
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ models:
description: '{{ doc("claimable_balances_current") }}'
tests:
- dbt_utils.recency:
tags: [recency]
datepart: hour
field: closed_at
interval: 12
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ models:
description: '{{ doc("contract_data_current") }}'
tests:
- dbt_utils.recency:
tags: [recency]
datepart: hour
field: closed_at
interval: 12
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ models:
description: '{{ doc("liquidity_pools_current") }}'
tests:
- dbt_utils.recency:
tags: [recency]
datepart: hour
field: closed_at
interval: 12
Expand Down
1 change: 1 addition & 0 deletions models/marts/ledger_current_state/offers_current.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ models:
description: '{{ doc("offers_current") }}'
tests:
- dbt_utils.recency:
tags: [recency]
datepart: hour
field: closed_at
interval: 12
Expand Down
1 change: 1 addition & 0 deletions models/marts/ledger_current_state/trust_lines_current.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ models:
description: '{{ doc("trust_lines_current") }}'
tests:
- dbt_utils.recency:
tags: [recency]
datepart: hour
field: closed_at
interval: 12
Expand Down
1 change: 1 addition & 0 deletions models/marts/ledger_current_state/ttl_current.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ models:
description: '{{ doc("ttl_current") }}'
tests:
- dbt_utils.recency:
tags: [recency]
datepart: hour
field: closed_at
interval: 12
Expand Down
1 change: 1 addition & 0 deletions models/marts/trade_agg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ models:
description: '{{ doc("trade_agg") }}'
tests:
- dbt_utils.recency:
tags: [recency]
datepart: day
field: cast(day_agg as timestamp)
interval: 2
Expand Down

0 comments on commit 9de1ecb

Please sign in to comment.