un-enable spot

This commit is contained in:
mattromano 2024-04-30 15:37:22 -07:00
parent 5c366443bc
commit 52663cef09
2 changed files with 1 additions and 41 deletions

View File

@ -24,20 +24,6 @@ new_subaccount_actions AS (
{{ this }}
)
UNION
SELECT
DISTINCT(subaccount)
FROM
{{ ref('silver__blitz_spot') }}
WHERE
_inserted_timestamp >= (
SELECT
MAX(
_inserted_timestamp
) - INTERVAL '12 hours'
FROM
{{ this }}
)
UNION
SELECT
DISTINCT(subaccount)
FROM
@ -78,32 +64,6 @@ trades_union AS (
FROM
{{ ref('silver__blitz_perps') }}
{% if is_incremental() %}
WHERE
subaccount IN (
SELECT
subaccount
FROM
new_subaccount_actions
)
{% endif %}
UNION ALL
SELECT
subaccount,
trader,
digest,
'spot' AS product_type,
trade_type,
block_timestamp,
amount,
amount_usd,
fee_amount,
base_delta_amount,
quote_delta_amount,
_inserted_timestamp
FROM
{{ ref('silver__blitz_spot') }}
{% if is_incremental() %}
WHERE
subaccount IN (

View File

@ -4,7 +4,7 @@
unique_key = '_log_id',
cluster_by = ['block_timestamp::DATE'],
tags = ['curated','reorg'],
enable = false
enabled = false
) }}
WITH blitz_products AS (