Skip to content
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

Support Aggregated Cube Materialization #934

Open
shangyian opened this issue Mar 6, 2024 · 0 comments
Open

Support Aggregated Cube Materialization #934

shangyian opened this issue Mar 6, 2024 · 0 comments

Comments

@shangyian
Copy link
Contributor

shangyian commented Mar 6, 2024

When we materialize cubes, we should offer two types of materialization:

  • Measures
  • Aggregated (i.e., with aggregated metrics)

Measures Cubes

Measures cube materialization supports the use case where users want to arbitrarily assemble metrics, potentially aggregated at different grains.

Agg Cubes

Aggregated cube materialization supports the use case where there is a specific grain of dimensions for the cube that the metrics are aggregated at, with the potential to aggregate further but without the possibility of more granular metrics.

Temporal Info

For Druid cubes the following pieces of temporal information are needed:

  • Primary timestamp column
  • Temporal partition column (only needed for INCREMENTAL_TIME loads), with a timestamp format

In some cases, the event timestamp column and the time unit partition column may be the same column. For example, an INCREMENTAL_TIME materialization could have a single event_date partition, which is also serves as the primary timestamp column, with format yyyyMMdd. However, it is also possible for the cube to have an event_ts column set as the primary timestamp, with event_date as its partition.

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

No branches or pull requests

1 participant