Merge Session/Event/Pageview CH

This commit is contained in:
Brian Cao 2022-09-12 09:55:34 -07:00
parent d377ef86e7
commit 52e036964b
18 changed files with 237 additions and 294 deletions

View file

@ -32,8 +32,9 @@ async function clickhouseQuery(websites, start_at) {
session_id,
created_at,
url
from pageview
where website_id in (${websites.join[',']}
from event
where event_name = ''
and website_id in (${websites.join[',']}
and created_at >= ${clickhouse.getDateFormat(start_at)})`,
);
}