From 301dcf560b755d542ecddcf8b35ae928d3f02441 Mon Sep 17 00:00:00 2001 From: Mike Stepanovic Date: Mon, 7 Apr 2025 12:29:31 -0600 Subject: [PATCH] added block exclusions from mainnet beta as they didn't resolve after upstream FR. versioning related --- .github/workflows/dbt_run_observability.yml | 2 +- .../silver_observability__transactions_completeness.sql | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dbt_run_observability.yml b/.github/workflows/dbt_run_observability.yml index 90c6509..2ee2fd5 100644 --- a/.github/workflows/dbt_run_observability.yml +++ b/.github/workflows/dbt_run_observability.yml @@ -42,4 +42,4 @@ jobs: dbt deps - name: Run DBT Jobs run: | - dbt build -s "movement_models,tag:observability" \ No newline at end of file + dbt run -s tag:observability \ No newline at end of file diff --git a/models/silver/_observability/silver_observability__transactions_completeness.sql b/models/silver/_observability/silver_observability__transactions_completeness.sql index 3e5d533..5e206ef 100644 --- a/models/silver/_observability/silver_observability__transactions_completeness.sql +++ b/models/silver/_observability/silver_observability__transactions_completeness.sql @@ -59,7 +59,7 @@ AND ( base_blocks AS ( SELECT block_number, - tx_count_from_versions AS transaction_count + tx_count AS transaction_count FROM {{ ref('core__fact_blocks') }} WHERE @@ -75,6 +75,8 @@ base_blocks AS ( FROM summary_stats ) + AND + block_number NOT IN (0, 1758, 1760, 1761, 1762, 1763, 1764, 1766) ), actual_tx_counts AS ( SELECT @@ -95,6 +97,8 @@ actual_tx_counts AS ( FROM summary_stats ) + AND + block_number NOT IN (0, 1758, 1760, 1761, 1762, 1763, 1764, 1766) GROUP BY block_number ),