Skip to content

Commit

Permalink
Add schema changes in all marts (#109)
Browse files Browse the repository at this point in the history
  • Loading branch information
amishas157 authored Oct 29, 2024
1 parent 4183a81 commit b6ea9af
Show file tree
Hide file tree
Showing 15 changed files with 61 additions and 0 deletions.
4 changes: 4 additions & 0 deletions models/marts/enriched_history/enriched_history_operations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ models:
severity: '{{ "error" if target.name == "prod" else "warn" }}'
meta:
description: "Monitors the freshness of your table over time, as the expected time between data updates."
- elementary.schema_changes:
tags: [schema_changes]
config:
severity: warn
columns:
- name: op_id
description: '{{ doc("operation_id") }}'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ models:
severity: '{{ "error" if target.name == "prod" else "warn" }}'
meta:
description: "Monitors the freshness of your table over time, as the expected time between data updates."
- elementary.schema_changes:
tags: [schema_changes]
config:
severity: warn
columns:
- name: op_id
description: '{{ doc("operation_id") }}'
Expand Down
4 changes: 4 additions & 0 deletions models/marts/fee_stats_agg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ models:
severity: '{{ "error" if target.name == "prod" else "warn" }}'
meta:
description: "Monitors the freshness of your table over time, as the expected time between data updates."
- elementary.schema_changes:
tags: [schema_changes]
config:
severity: warn
columns:
- name: day_agg
description: '{{ doc("fee_day_agg") }}'
Expand Down
4 changes: 4 additions & 0 deletions models/marts/history_assets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ models:
- asset_issuer
date_column_name: "batch_run_date"
greater_than_equal_to: "2 day"
- elementary.schema_changes:
tags: [schema_changes]
config:
severity: warn
columns:
- name: asset_id
description: '{{ doc("assets_id") }}'
Expand Down
4 changes: 4 additions & 0 deletions models/marts/ledger_current_state/account_signers_current.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ models:
greater_than_equal_to: "2 day"
meta:
description: "Tests the uniqueness combination of: account_id, signer, ledger_entry_change and last_modified_ledger."
- elementary.schema_changes:
tags: [schema_changes]
config:
severity: warn
columns:
- name: account_id
description: '{{ doc("account_id") }}'
Expand Down
4 changes: 4 additions & 0 deletions models/marts/ledger_current_state/accounts_current.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ models:
greater_than_equal_to: "2 day"
meta:
description: "Tests the uniqueness combination of: account_id, ledger_entry_change and last_modified_ledger."
- elementary.schema_changes:
tags: [schema_changes]
config:
severity: warn
columns:
- name: account_id
description: '{{ doc("account_id") }}'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ models:
severity: '{{ "error" if target.name == "prod" else "warn" }}'
meta:
description: "Monitors the freshness of your table over time, as the expected time between data updates."
- elementary.schema_changes:
tags: [schema_changes]
config:
severity: warn
columns:
- name: balance_id
description: '{{ doc("balance_id") }}'
Expand Down
5 changes: 5 additions & 0 deletions models/marts/ledger_current_state/config_settings_current.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ version: 2
models:
- name: config_settings_current
description: '{{ doc("config_settings_current") }}'
tests:
- elementary.schema_changes:
tags: [schema_changes]
config:
severity: warn
columns:
- name: config_setting_id
description: '{{ doc("config_setting_id") }}'
Expand Down
4 changes: 4 additions & 0 deletions models/marts/ledger_current_state/contract_code_current.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ models:
severity: '{{ "error" if target.name == "prod" else "warn" }}'
meta:
description: "Monitors the freshness of your table over time, as the expected time between data updates."
- elementary.schema_changes:
tags: [schema_changes]
config:
severity: warn
columns:
- name: contract_code_hash
description: '{{ doc("key_hash") }}'
Expand Down
4 changes: 4 additions & 0 deletions models/marts/ledger_current_state/contract_data_current.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ models:
severity: '{{ "error" if target.name == "prod" else "warn" }}'
meta:
description: "Monitors the freshness of your table over time, as the expected time between data updates."
- elementary.schema_changes:
tags: [schema_changes]
config:
severity: warn
columns:
- name: contract_id
description: '{{ doc("key_hash") }}'
Expand Down
4 changes: 4 additions & 0 deletions models/marts/ledger_current_state/liquidity_pools_current.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ models:
greater_than_equal_to: "2 day"
meta:
description: "Tests the uniqueness combination of: liquidity_pool_id, ledger_entry_change and last_modified_ledger."
- elementary.schema_changes:
tags: [schema_changes]
config:
severity: warn
columns:
- name: liquidity_pool_id
description: '{{ doc("liquidity_pool_id") }}'
Expand Down
4 changes: 4 additions & 0 deletions models/marts/ledger_current_state/offers_current.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ models:
greater_than_equal_to: "2 day"
meta:
description: "Tests the uniqueness combination of: offer_id, ledger_entry_change and last_modified_ledger."
- elementary.schema_changes:
tags: [schema_changes]
config:
severity: warn
columns:
- name: seller_id
description: '{{ doc("seller_id") }}'
Expand Down
4 changes: 4 additions & 0 deletions models/marts/ledger_current_state/trust_lines_current.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ models:
greater_than_equal_to: "2 day"
meta:
description: "Tests the uniqueness combination of: account_id, asset_code, asset_issuer, liquidity_pool_id, ledger_entry_change and last_modified_ledger."
- elementary.schema_changes:
tags: [schema_changes]
config:
severity: warn
columns:
- name: account_id
description: '{{ doc("account_id") }}'
Expand Down
4 changes: 4 additions & 0 deletions models/marts/ledger_current_state/ttl_current.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ models:
severity: '{{ "error" if target.name == "prod" else "warn" }}'
meta:
description: "Monitors the freshness of your table over time, as the expected time between data updates."
- elementary.schema_changes:
tags: [schema_changes]
config:
severity: warn
columns:
- name: key_hash
description: '{{ doc("key_hash") }}'
Expand Down
4 changes: 4 additions & 0 deletions models/marts/trade_agg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ models:
- asset_b
date_column_name: "day_agg"
greater_than_equal_to: "2 day"
- elementary.schema_changes:
tags: [schema_changes]
config:
severity: warn
columns:
- name: day_agg
description: '{{ doc("trade_day_agg") }}'
Expand Down

0 comments on commit b6ea9af

Please sign in to comment.