Skip to content

Commit

Permalink
conditional interval
Browse files Browse the repository at this point in the history
  • Loading branch information
amishas157 committed Oct 4, 2024
1 parent 2b78a7c commit 9142e7d
Show file tree
Hide file tree
Showing 14 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion models/staging/stg_account_signers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ models:
- dbt_utils.recency:
datepart: hour
field: cast(closed_at as timestamp)
interval: 1
interval: {{ 1 if target.name == "prod" else 6 }}
meta:
description: "Monitors the freshness of your table over time, as the expected time between data updates."
- incremental_unique_combination_of_columns:
Expand Down
2 changes: 1 addition & 1 deletion models/staging/stg_accounts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ models:
- dbt_utils.recency:
datepart: hour
field: cast(closed_at as timestamp)
interval: 1
interval: {{ 1 if target.name == "prod" else 6 }}
meta:
description: "Monitors the freshness of your table over time, as the expected time between data updates."
- incremental_unique_combination_of_columns:
Expand Down
2 changes: 1 addition & 1 deletion models/staging/stg_claimable_balances.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ models:
- dbt_utils.recency:
datepart: hour
field: cast(closed_at as timestamp)
interval: 1
interval: {{ 1 if target.name == "prod" else 6 }}
meta:
description: "Monitors the freshness of your table over time, as the expected time between data updates."
- incremental_unique_combination_of_columns:
Expand Down
2 changes: 1 addition & 1 deletion models/staging/stg_contract_data.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ models:
- dbt_utils.recency:
datepart: hour
field: cast(closed_at as timestamp)
interval: 1
interval: {{ 1 if target.name == "prod" else 6 }}
meta:
description: "Monitors the freshness of your table over time, as the expected time between data updates."
- incremental_unique_combination_of_columns:
Expand Down
2 changes: 1 addition & 1 deletion models/staging/stg_history_assets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ models:
- dbt_utils.recency:
datepart: hour
field: cast(closed_at as timestamp)
interval: 1
interval: {{ 1 if target.name == "prod" else 6 }}
meta:
description: "Monitors the freshness of your table over time, as the expected time between data updates."
- incremental_unique_combination_of_columns:
Expand Down
2 changes: 1 addition & 1 deletion models/staging/stg_history_effects.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ models:
- dbt_utils.recency:
datepart: hour
field: cast(closed_at as timestamp)
interval: 1
interval: {{ 1 if target.name == "prod" else 6 }}
meta:
description: "Monitors the freshness of your table over time, as the expected time between data updates."
columns:
Expand Down
2 changes: 1 addition & 1 deletion models/staging/stg_history_ledgers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ models:
- dbt_utils.recency:
datepart: hour
field: cast(closed_at as timestamp)
interval: 1
interval: {{ 1 if target.name == "prod" else 6 }}
meta:
description: "Monitors the freshness of your table over time, as the expected time between data updates."
columns:
Expand Down
2 changes: 1 addition & 1 deletion models/staging/stg_history_operations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ models:
- dbt_utils.recency:
datepart: hour
field: cast(closed_at as timestamp)
interval: 1
interval: {{ 1 if target.name == "prod" else 6 }}
meta:
description: "Monitors the freshness of your table over time, as the expected time between data updates."
columns:
Expand Down
2 changes: 1 addition & 1 deletion models/staging/stg_history_trades.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ models:
- dbt_utils.recency:
datepart: hour
field: cast(ledger_closed_at as timestamp)
interval: 1
interval: {{ 1 if target.name == "prod" else 6 }}
meta:
description: "Monitors the freshness of your table over time, as the expected time between data updates."
- incremental_unique_combination_of_columns:
Expand Down
2 changes: 1 addition & 1 deletion models/staging/stg_history_transactions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ models:
- dbt_utils.recency:
datepart: hour
field: cast(closed_at as timestamp)
interval: 1
interval: {{ 1 if target.name == "prod" else 6 }}
meta:
description: "Monitors the freshness of your table over time, as the expected time between data updates."
columns:
Expand Down
2 changes: 1 addition & 1 deletion models/staging/stg_liquidity_pools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ models:
- dbt_utils.recency:
datepart: hour
field: cast(closed_at as timestamp)
interval: 1
interval: {{ 1 if target.name == "prod" else 6 }}
meta:
description: "Monitors the freshness of your table over time, as the expected time between data updates."
- incremental_unique_combination_of_columns:
Expand Down
2 changes: 1 addition & 1 deletion models/staging/stg_offers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ models:
- dbt_utils.recency:
datepart: hour
field: cast(closed_at as timestamp)
interval: 1
interval: {{ 1 if target.name == "prod" else 6 }}
meta:
description: "Monitors the freshness of your table over time, as the expected time between data updates."
- incremental_unique_combination_of_columns:
Expand Down
2 changes: 1 addition & 1 deletion models/staging/stg_trust_lines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ models:
- dbt_utils.recency:
datepart: hour
field: cast(closed_at as timestamp)
interval: 1
interval: {{ 1 if target.name == "prod" else 6 }}
meta:
description: "Monitors the freshness of your table over time, as the expected time between data updates."
- incremental_unique_combination_of_columns:
Expand Down
2 changes: 1 addition & 1 deletion models/staging/stg_ttl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ models:
- dbt_utils.recency:
datepart: hour
field: cast(closed_at as timestamp)
interval: 1
interval: {{ 1 if target.name == "prod" else 6 }}
meta:
description: "Monitors the freshness of your table over time, as the expected time between data updates."
- incremental_unique_combination_of_columns:
Expand Down

0 comments on commit 9142e7d

Please sign in to comment.