Skip to content

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

Merged
merged 16 commits into from
May 19, 2025

Conversation

mattromano
Copy link
Contributor

No description provided.

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
Copy link
Collaborator

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

@mattromano mattromano changed the title AN-6016-create-daily-token-transfer-summary AN-6016/create-daily-token-transfer-summary May 16, 2025
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);",
Copy link
Collaborator

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
Copy link
Collaborator

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?

@mattromano mattromano merged commit bb5d70b into main May 19, 2025
@mattromano mattromano deleted the AN-6016-create-daily-token-transfer-summary branch May 19, 2025 16:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants