mirror of
https://github.com/FlipsideCrypto/terra-models.git
synced 2026-02-06 11:26:44 +00:00
max blocks to view
This commit is contained in:
parent
989db3be0a
commit
a23ae9f547
@ -11,7 +11,7 @@ WITH last_3_days AS (
|
||||
SELECT
|
||||
block_id
|
||||
FROM
|
||||
{{ ref("_max_block_by_date") }}
|
||||
{{ ref("streamline___max_block_by_date") }}
|
||||
qualify ROW_NUMBER() over (
|
||||
ORDER BY
|
||||
block_id DESC
|
||||
|
||||
@ -11,7 +11,7 @@ WITH last_3_days AS (
|
||||
SELECT
|
||||
block_id
|
||||
FROM
|
||||
{{ ref("_max_block_by_date") }}
|
||||
{{ ref("streamline___max_block_by_date") }}
|
||||
qualify ROW_NUMBER() over (
|
||||
ORDER BY
|
||||
block_id DESC
|
||||
|
||||
@ -11,7 +11,7 @@ WITH last_3_days AS (
|
||||
SELECT
|
||||
block_id
|
||||
FROM
|
||||
{{ ref("_max_block_by_date") }}
|
||||
{{ ref("streamline___max_block_by_date") }}
|
||||
qualify ROW_NUMBER() over (
|
||||
ORDER BY
|
||||
block_id DESC
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
{{ config (
|
||||
materialized = "ephemeral",
|
||||
materialized = "view",
|
||||
unique_key = "block_id",
|
||||
) }}
|
||||
|
||||
@ -24,4 +24,4 @@ WHERE
|
||||
MAX(block_date)
|
||||
FROM
|
||||
base
|
||||
)
|
||||
)
|
||||
Loading…
Reference in New Issue
Block a user