2024-08-30 00:03:31 +03:00
|
|
|
SCHEMA >
|
|
|
|
`site_uuid` String,
|
|
|
|
`date` Date,
|
|
|
|
`session_id` String,
|
2024-09-02 14:24:50 +03:00
|
|
|
`member_status` SimpleAggregateFunction(any, String),
|
|
|
|
`post_uuid` SimpleAggregateFunction(any, String),
|
2024-08-30 00:03:31 +03:00
|
|
|
`device` SimpleAggregateFunction(any, String),
|
|
|
|
`browser` SimpleAggregateFunction(any, String),
|
|
|
|
`location` SimpleAggregateFunction(any, String),
|
2024-09-24 17:26:08 +03:00
|
|
|
`source` SimpleAggregateFunction(any, String),
|
|
|
|
`pathname` SimpleAggregateFunction(any, String),
|
2024-09-26 17:00:24 +03:00
|
|
|
`first_view` SimpleAggregateFunction(min, DateTime),
|
|
|
|
`latest_view` SimpleAggregateFunction(max, DateTime),
|
|
|
|
`pageviews` AggregateFunction(count)
|
2024-08-30 00:03:31 +03:00
|
|
|
|
|
|
|
ENGINE AggregatingMergeTree
|
|
|
|
ENGINE_PARTITION_KEY toYYYYMM(date)
|
|
|
|
ENGINE_SORTING_KEY date, session_id, site_uuid
|