exclude-null-perp-responses (#145)
Some checks failed
docs_update / docs_update (push) Has been cancelled
docs_update / notify-failure (push) Has been cancelled
dbt_run_scheduled_weekly / run_dbt_jobs (push) Has been cancelled
dbt_run_scheduled_weekly / notify-failure (push) Has been cancelled
dbt_test / run_dbt_jobs (push) Has been cancelled
dbt_run_daily_aptos_gas / run_dbt_jobs (push) Has been cancelled
dbt_run_streamline_daily / run_dbt_jobs (push) Has been cancelled
dbt_run_dev_refresh / run_dbt_jobs_refresh (push) Has been cancelled
dbt_run_scheduled_daily / run_dbt_jobs (push) Has been cancelled
dbt_run_defillama_history / run_dbt_jobs (push) Has been cancelled
dbt_run_scheduled_bi_hourly / run_dbt_jobs (push) Has been cancelled
dbt_test / notify-failure (push) Has been cancelled
dbt_run_daily_aptos_gas / notify-failure (push) Has been cancelled
dbt_run_streamline_daily / notify-failure (push) Has been cancelled
dbt_run_dev_refresh / run_dbt_jobs_udfs (push) Has been cancelled
dbt_run_dev_refresh / notify-failure (push) Has been cancelled
dbt_run_scheduled_daily / notify-failure (push) Has been cancelled
dbt_run_defillama_history / notify-failure (push) Has been cancelled
dbt_run_scheduled_bi_hourly / notify-failure (push) Has been cancelled

This commit is contained in:
Matt Romano 2025-10-10 12:24:16 -04:00 committed by GitHub
parent 4433f6b4c4
commit fbc539e02b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -16,8 +16,10 @@ with base_raw as (
where _inserted_timestamp > (
select coalesce(max(_inserted_timestamp), '2025-01-01') from {{ this }}
)
AND DATA IS NOT NULL
{% else %}
{{ ref('bronze__defillama_perp_metrics_FR') }}
WHERE DATA IS NOT NULL
{% endif %}
),
base as (
@ -45,6 +47,8 @@ base as (
DATA :totalDataChartBreakdown AS total_data_chart_breakdown,
_inserted_timestamp
from base_raw
where data:defillamaId IS NOT NULL
and TRY_CAST(data:defillamaId::STRING AS NUMBER) IS NOT NULL
)
select
timestamp,