Files
cfw-autumn/server/tinybird/materializations/events_hourly_no_properties_mv.datasource
2026-04-05 17:47:33 +01:00

20 lines
671 B
Plaintext

DESCRIPTION >
Hourly aggregates WITHOUT properties for fast aggregation queries.
Used by aggregate_simple when no property filters are needed.
Drops the properties column from the GROUP BY so rows with different
properties but the same (org, env, customer, event, entity, hour)
are collapsed into a single row.
SCHEMA >
`org_id` String,
`env` String,
`customer_id` String,
`event_name` String,
`entity_id` String DEFAULT '',
`hour` DateTime,
`total_value` Float64,
`event_count` UInt64
ENGINE "MergeTree"
ENGINE_PARTITION_KEY "toYYYYMM(hour)"
ENGINE_SORTING_KEY "org_id, env, hour, customer_id, entity_id, event_name"