-
Notifications
You must be signed in to change notification settings - Fork 6
AN-6016/create-daily-token-transfer-summary #453
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AN-6016/create-daily-token-transfer-summary #453
Conversation
LEFT JOIN {{ ref('silver__tokens') }} t | ||
ON a.address = t.address | ||
GROUP BY 1,2,3,4,5,6 | ||
HAVING count(distinct tx_hash) >= 1000 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this logic will probably need to be applied per chain - let's just include everything in this model
unique_key = ['transfers_id'], | ||
cluster_by = ['blockchain','block_day'], | ||
merge_exclude_columns = ['inserted_timestamp'], | ||
post_hook = "ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(address,blockchain);", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can kill the blockchain in the SO, wont be unique enough and we're already clustering by it
- BLOCKCHAIN | ||
- BLOCK_DAY | ||
columns: | ||
- name: BLOCK_DAY |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you add a recency test too?
No description provided.