Skip to content

feat: add daily and epoch level aggregation tables for attestation_liveness_by_entity#109

Open
samcm wants to merge 3 commits intomasterfrom
feat/attestation-liveness-by-entity-by-epoch
Open

feat: add daily and epoch level aggregation tables for attestation_liveness_by_entity#109
samcm wants to merge 3 commits intomasterfrom
feat/attestation-liveness-by-entity-by-epoch

Conversation

@samcm
Copy link
Member

@samcm samcm commented Oct 29, 2025

Add tables:

  • fct_attestation_liveness_by_entity_head_epoch
  • fct_attestation_liveness_by_entity_head_daily

… liveness

This commit introduces two new ClickHouse tables, `fct_attestation_liveness_by_entity_head_epoch` and `fct_attestation_liveness_by_entity_head_daily`, along with their corresponding SQL migrations and transformation logic. This change aims to aggregate attestation liveness data at both epoch and daily granularities to improve query performance and reduce data volume for reporting.

feat(proto): add fct_attestation_liveness_by_entity_head_epoch proto and tests

This commit introduces the protobuf definition and associated gRPC service for the `fct_attestation_liveness_by_entity_head_epoch` table, along with corresponding data quality tests in YAML. This is necessary to enable querying and validation for the new epoch-level aggregation table.
@samcm samcm requested a review from Savid as a code owner October 29, 2025 04:43
samcm added 2 commits October 29, 2025 16:01
… convention

Rename aggregation tables from incorrect to correct naming pattern:
- fct_attestation_liveness_by_entity_head_epoch → fct_attestation_liveness_by_entity_epoch_head
- fct_attestation_liveness_by_entity_head_daily → fct_attestation_liveness_by_entity_day_head

Changes follow the pattern: by_[dimensions]_[temporal_unit]_[chain_type]
where temporal units are nouns (epoch, day) not adjectives (daily).

Updates all migrations, models, tests, and generated protobuf files.
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.

1 participant