packages feed

clickhouse-migrate-test-support-0.1.0.0: test/fixtures/kansoku/steps/0017_replay_safe_sources/statement-20.sql


CREATE MATERIALIZED VIEW analytics.mv_page_views_by_route
TO analytics.page_views_by_route AS
SELECT account_id, toDate(occurred_at) AS day, path(url) AS route,
       uniqExactState(event_id) AS views
FROM analytics.events_raw
WHERE event_name = 'page_view'
GROUP BY account_id, day, route;