add hourly tags to nado api models

This commit is contained in:
mattromano 2026-01-20 10:47:32 -08:00
parent 423ab7fb42
commit 66a7cfc700
3 changed files with 4 additions and 5 deletions

View File

@ -10,7 +10,7 @@
full_refresh = false,
unique_key = ['product_id','hour','price','orderbook_side'],
cluster_by = ['hour::DATE'],
tags = ['silver','curated','nado']
tags = ['silver','curated','nado','hourly_nado']
) }}
WITH market_depth AS ({% for item in range(55) %}

View File

@ -9,7 +9,7 @@
incremental_strategy = 'merge',
unique_key = ['ticker_id','hour'],
cluster_by = ['HOUR::DATE'],
tags = ['silver','curated','nado']
tags = ['silver','curated','nado','hourly_nado']
) }}

View File

@ -9,7 +9,7 @@
incremental_strategy = 'merge',
unique_key = ['ticker_id','hour'],
cluster_by = ['HOUR::DATE'],
tags = ['silver','curated','nado']
tags = ['silver','curated','nado','hourly_nado']
) }}
@ -54,7 +54,6 @@ SELECT
) }} AS nado_money_markets_id,
'{{ invocation_id }}' AS _invocation_id
FROM
flattened
WHERE product_id not in ('121','125') qualify(ROW_NUMBER() over(PARTITION BY ticker_id, HOUR
flattened qualify(ROW_NUMBER() over(PARTITION BY ticker_id, HOUR
ORDER BY
inserted_timestamp DESC )) = 1