feat: add daily and epoch level aggregation tables for attestation_liveness_by_entity#109
Open
feat: add daily and epoch level aggregation tables for attestation_liveness_by_entity#109
Conversation
… 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.
…and using FINAL tables
… 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add tables:
fct_attestation_liveness_by_entity_head_epochfct_attestation_liveness_by_entity_head_daily