mirror of
https://github.com/FlipsideCrypto/near-models.git
synced 2026-02-06 14:11:54 +00:00
autoformat views
This commit is contained in:
parent
cce204a84e
commit
5fb0a148e8
@ -1,4 +1,3 @@
|
||||
|
||||
{{ config(
|
||||
materialized = 'view',
|
||||
secure = false,
|
||||
@ -6,8 +5,9 @@
|
||||
) }}
|
||||
|
||||
WITH nft_data AS (
|
||||
|
||||
SELECT
|
||||
id as ez_nft_contract_metrics_id,
|
||||
id AS ez_nft_contract_metrics_id,
|
||||
receiver_id,
|
||||
tokens,
|
||||
transfers_24h,
|
||||
@ -18,9 +18,10 @@ WITH nft_data AS (
|
||||
mints,
|
||||
inserted_timestamp,
|
||||
modified_timestamp
|
||||
FROM {{ ref('silver__atlas_nft_table') }}
|
||||
FROM
|
||||
{{ ref('silver__atlas_nft_table') }}
|
||||
)
|
||||
|
||||
select
|
||||
SELECT
|
||||
*
|
||||
from nft_data
|
||||
FROM
|
||||
nft_data
|
||||
|
||||
@ -4,11 +4,11 @@
|
||||
tags = ['atlas']
|
||||
) }}
|
||||
|
||||
|
||||
WITH nft_detailed AS (
|
||||
|
||||
SELECT
|
||||
id as ez_nft_contract_metrics_daily_id,
|
||||
day,
|
||||
id AS ez_nft_contract_metrics_daily_id,
|
||||
DAY,
|
||||
receiver_id,
|
||||
tokens,
|
||||
all_transfers,
|
||||
@ -17,9 +17,10 @@ WITH nft_detailed AS (
|
||||
mints,
|
||||
inserted_timestamp,
|
||||
modified_timestamp
|
||||
FROM {{ ref('silver__atlas_nft_detailed') }}
|
||||
FROM
|
||||
{{ ref('silver__atlas_nft_detailed') }}
|
||||
)
|
||||
|
||||
SELECT
|
||||
SELECT
|
||||
*
|
||||
FROM nft_detailed
|
||||
FROM
|
||||
nft_detailed
|
||||
|
||||
@ -4,17 +4,18 @@
|
||||
tags = ['atlas']
|
||||
) }}
|
||||
|
||||
WITH TRAILING AS (
|
||||
|
||||
WITH trailing AS (
|
||||
SELECT
|
||||
id as fact_nft_monthly_txs_id,
|
||||
day,
|
||||
id AS fact_nft_monthly_txs_id,
|
||||
DAY,
|
||||
txns,
|
||||
inserted_timestamp,
|
||||
modified_timestamp
|
||||
FROM {{ ref('silver__atlas_nft_30_trailing') }}
|
||||
FROM
|
||||
{{ ref('silver__atlas_nft_30_trailing') }}
|
||||
)
|
||||
|
||||
SELECT
|
||||
SELECT
|
||||
*
|
||||
FROM trailing
|
||||
FROM
|
||||
TRAILING
|
||||
|
||||
Loading…
Reference in New Issue
Block a user