diff --git a/models/marts/ledger_current_state/trust_lines_current.yml b/models/marts/ledger_current_state/trust_lines_current.yml index a1840b8..b8e5b8d 100644 --- a/models/marts/ledger_current_state/trust_lines_current.yml +++ b/models/marts/ledger_current_state/trust_lines_current.yml @@ -39,7 +39,7 @@ models: tests: - not_null: config: - where: asset_type != asset_type_pool_share + where: asset_type != pool_share and closed_at > current_timestamp - interval 2 day - name: asset_issuer @@ -47,7 +47,7 @@ models: tests: - not_null: config: - where: asset_type != asset_type_pool_share + where: asset_type != pool_share and closed_at > current_timestamp - interval 2 day - name: asset_type @@ -119,7 +119,7 @@ models: config: where: closed_at > current_timestamp - interval 2 day - accepted_values: - values: ["asset_type_credit_alphanum4", "asset_type_credit_alphanum12", "asset_type_pool_share"] + values: ["credit_alphanum4", "credit_alphanum12", "pool_share"] quote: false - name: closed_at diff --git a/models/sources/src_trust_lines.yml b/models/sources/src_trust_lines.yml index 8174697..ecf5435 100644 --- a/models/sources/src_trust_lines.yml +++ b/models/sources/src_trust_lines.yml @@ -55,7 +55,7 @@ sources: tests: - not_null: config: - where: asset_type != asset_type_pool_share + where: asset_type != pool_share and batch_run_date > current_datetime - interval 2 day - name: asset_code @@ -63,7 +63,7 @@ sources: tests: - not_null: config: - where: asset_type != asset_type_pool_share + where: asset_type != pool_share and batch_run_date > current_datetime - interval 2 day - name: liquidity_pool_id