max blocks to view

This commit is contained in:
Eric Laurello 2024-08-26 14:34:29 -04:00
parent 989db3be0a
commit a23ae9f547
4 changed files with 5 additions and 5 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -1,5 +1,5 @@
{{ config (
materialized = "ephemeral",
materialized = "view",
unique_key = "block_id",
) }}
@ -24,4 +24,4 @@ WHERE
MAX(block_date)
FROM
base
)
)