bespoke tests (#70)

This commit is contained in:
Jack Forgash 2022-10-03 22:24:36 -05:00 committed by GitHub
parent 1c6f55b3e4
commit a5ebc82035
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 32 additions and 0 deletions

View File

@ -0,0 +1,16 @@
WITH moments AS (
SELECT
nft_collection,
nft_id,
_inserted_timestamp
FROM
{{ ref('silver__nft_allday_metadata') }}
WHERE
_inserted_timestamp :: DATE >= CURRENT_DATE - 1
)
SELECT
IFF(COUNT(nft_id) > 0, TRUE, FALSE) AS recent
FROM
moments
HAVING
recent = FALSE

View File

@ -0,0 +1,16 @@
WITH moments AS (
SELECT
nft_collection,
nft_id,
_inserted_timestamp
FROM
{{ ref('silver__nft_topshot_metadata') }}
WHERE
_inserted_timestamp :: DATE >= CURRENT_DATE - 1
)
SELECT
IFF(COUNT(nft_id) > 0, TRUE, FALSE) AS recent
FROM
moments
HAVING
recent = FALSE